1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-14 07:35:23 +02:00
tldr/pages/common/docker-save.md
Vitor Henrique 55a49c4ba1
pages*: remove "one or more" from description when superfluous (#12121)
* pages*: remove "one or more" from description when superfluous

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-25 10:58:11 +05:30

573 B

docker save

Export 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 ...}}