LinuxCommandLibrary

docker-image-save

TLDR

Save image to tar archive

$ docker image save -o [image.tar] [image]
copy
Save to stdout
$ docker image save [image] > [image.tar]
copy
Save multiple images
$ docker image save -o [images.tar] [image1] [image2]
copy
Save with compression
$ docker image save [image] | gzip > [image.tar.gz]
copy

SYNOPSIS

docker image save [options] image [image...]

DESCRIPTION

docker image save saves one or more images to a tar archive. Used for transferring images between systems or backing up images. Use docker load to restore.

PARAMETERS

-o, --output file

Write to file instead of stdout.

SEE ALSO

Copied to clipboard