Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-18 00:18:39 +00:00
parent bda9e5a061
commit 0df0c010e8
101 changed files with 941 additions and 154 deletions

25
tldr/docker-image-save Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# docker image save
> Export Docker images to archive.
> More information: <https://docs.docker.com/reference/cli/docker/image/save/>.
- Save an image by redirecting `stdout` to a tar archive:
`docker {{[save|image save]}} {{image}}:{{tag}} > {{path/to/file.tar}}`
- Save an image to a tar archive:
`docker {{[save|image save]}} {{[-o|--output]}} {{path/to/file.tar}} {{image}}:{{tag}}`
- Save all tags of the image:
`docker {{[save|image save]}} {{[-o|--output]}} {{path/to/file.tar}} {{image_name}}`
- Cherry-pick particular tags of an image to save:
`docker {{[save|image save]}} {{[-o|--output]}} {{path/to/file.tar}} {{image_name:tag1 image_name:tag2 ...}}`