commands.sh

docker image save

all

Export Docker images to archive.

More info →

Options (2)

boolean

Save an image by redirecting `stdout` to a `.tar` archive

Example: docker {{[save|image save]}} {{image}}:{{tag}} > {{path/to/file.tar}}
-o, --outputboolean

Save an image to a `.tar` archive

Example: docker {{[save|image save]}} {{[-o|--output]}} {{path/to/file.tar}} {{image}}:{{tag}}

Examples (4)

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 ...
made by @shridhargupta | data from tldr-pages