docker image save [OPTIONS] IMAGE [IMAGE...]
Aliases
An alias is a short or memorable alternative for a longer command.
docker save
Produces a tarred repository to the standard output stream. Contains all parent layers, and all tags + versions, or specified repo:tag
, for each argument provided.
-o, --output
Write to a file, instead of STDOUT --platform
API 1.48+ Save only the given platform variant. Formatted as os[/arch[/variant]]
(e.g., linux/amd64
)
docker load
. Save an image to a tar.gz file using gzip
You can use gzip to save the image file and make the backup smaller.
Cherry-pick particular tagsYou can even cherry-pick particular tags of an image repository.
Save a specific platform (--platform)The --platform
option allows you to specify which platform variant of the image to save. By default, docker save
saves all platform variants that are present in the daemon's image store. Use the --platform
option to specify which platform variant of the image to save. An error is produced if the given platform is not present in the local image store.
The platform option takes the os[/arch[/variant]]
format; for example, linux/amd64
or linux/arm64/v8
. Architecture and variant are optional, and default to the daemon's native architecture if omitted.
The following example pulls the RISC-V variant of the alpine:latest
image and saves it to a tar archive.
The following example attempts to save a platform variant of alpine:latest
that doesn't exist in the local image store, resulting in an error.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4