docker-save

Export one or more docker images to archive.

TLDR

Save an image by redirecting stdout to a tar archive

$ docker save [image]:[tag] > [path/to/file.tar]
copy

Save an image to a tar archive

$ docker save --output [path/to/file.tar] [image]:[tag]
copy

Save all tags of the image

$ docker save --output [path/to/file.tar] [image_name]
copy

Cherry-pick particular tags of an image to save

$ docker save --output [path/to/file.tar] [image_name:tag1 image_name:tag2 ...]
copy

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

docker(1)

Copied to clipboard
digitalocean