System Grab Bag

View all TLDR pages from common (or from all pages)

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

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.