LinuxCommandLibrary

docker-save

save Docker images to tar archives

TLDR

Save image to tar file

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

SYNOPSIS

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

DESCRIPTION

docker save saves one or more images to a tar archive, including all parent layers, tags, and versions. Use docker load to restore. This command is useful for offline distribution, backing up images, or transferring images between systems without a registry. The resulting archive preserves the complete image with all metadata and history.

PARAMETERS

-o, --output file

Write to file instead of stdout.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community