docker-save
save Docker images to tar archives
TLDR
Save image to tar file
$ docker save -o [image.tar] [image]
Save to stdout$ docker save [image] > [image.tar]
Save with compression$ docker save [image] | gzip > [image.tar.gz]
Save multiple images$ docker save -o [images.tar] [image1] [image2]
Save specific tag$ docker save -o [image.tar] [image]:[tag]
Save a specific platform variant$ docker save --platform [linux/amd64] -o [image.tar] [image]
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.--platform os[/arch[/variant]]
Save a specific platform variant. By default, all platform variants present in the image store are saved.
SEE ALSO
docker-image-save(1), docker-load(1), docker-image(1)
