LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

docker-image-save

save images to tar archives

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 Docker images to a tar archive, packaging all image layers, configuration, and metadata into a single file. This command is designed for transferring images between systems without using a registry, backing up important images, or distributing images via offline media.The resulting tar archive contains the complete image structure, including all filesystem layers, image manifests, and configuration JSON. Multiple images can be saved to a single archive, which is useful for bundling related images together.Output can be directed to a file with -o or to stdout, allowing for flexible integration with compression tools like gzip or transmission over network connections. Use docker image load to restore images from these archives.

PARAMETERS

-o, --output file

Write to file instead of stdout.

INSTALL

sudo apt install docker-cli
copy
sudo dnf install docker-cli
copy
sudo pacman -S docker
copy
sudo apk add docker-cli
copy
sudo zypper install docker
copy
brew install docker
copy
nix profile install nixpkgs#docker
copy

CAVEATS

The archive contains the image's filesystem layers as raw tar files; it is not identical to a docker export archive (which dumps a running container's filesystem flat without history). Saving by image ID rather than name preserves no repository tags in the archive; pass a name:tag to retain them. Archives produced by newer Docker engines use the OCI manifest format and may not load cleanly into very old engines.

HISTORY

docker save was part of the original Docker CLI from 2013. The subcommand was reorganized under the docker image namespace in Docker 1.13 (January 2017) while keeping the legacy short form as an alias.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid