docker-save - Man Page
Save one or more images to a tar archive (streamed to STDOUT by default)
Examples (TL;DR)
- 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 ...
Synopsis
docker save [Options] IMAGE [IMAGE...]
Description
Alias for docker image save
.
Options
- -h, ā--help[=false]
help for save
- -o, ā--output=""
Write to a file, instead of STDOUT
See Also
Referenced By
May 2020 Docker Community