Skip to main content

Export one or more docker images to archive.

# To save an image by redirecting 'stdout' to a tar archive:
docker save <image>:<tag> > <path/to/file.tar>

# To save an image to a tar archive:
docker save --output <path/to/file.tar> <image>:<tag>

# To save all tags of the image:
docker save --output <path/to/file.tar> <image_name>

# To cherry-pick particular tags of an image to save:
docker save --output <path/to/file.tar> <image_name:tag1 image_name:tag2 ...>