mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-09 21:33:50 +02:00
docker-save: add page (#4936)
This commit is contained in:
parent
a0aeac1852
commit
13ec447aaf
1 changed files with 20 additions and 0 deletions
20
pages/common/docker-save.md
Normal file
20
pages/common/docker-save.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# docker save
|
||||||
|
|
||||||
|
> Export one or more docker images to archive.
|
||||||
|
> More information: <https://docs.docker.com/engine/reference/commandline/save/>.
|
||||||
|
|
||||||
|
- Save an image by redirecting `stdout` to a tar archive:
|
||||||
|
|
||||||
|
`docker save {{image}}:{{tag}} > {{path/to/file.tar}}`
|
||||||
|
|
||||||
|
- Save an image to a tar archive:
|
||||||
|
|
||||||
|
`docker save --output {{path/to/file.tar}} {{image}}:{{tag}}`
|
||||||
|
|
||||||
|
- Save all tags of the image:
|
||||||
|
|
||||||
|
`docker save --output {{path/to/file.tar}} {{image_name}}`
|
||||||
|
|
||||||
|
- Cherry-pick particular tags of an image to save:
|
||||||
|
|
||||||
|
`docker save --output {{path/to/file.tar}} {{image_name:tag1 image_name:tag2 ...}}`
|
Loading…
Add table
Reference in a new issue