1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 13:02:08 +02:00
tldr/pages/common/docker-save.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

583 B

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