Docker Cheat Sheet/Save image to tar

Export one or more images to a tar archive.

Section: Images

Save image to tar

bash
bash
docker save -o myapp.tar myapp:1.0.0
Explanation

Useful for air-gapped environments or offline transfer.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Images
Load image from tar
Import images from a tar archive.
OpenIn sheetbashsame section
Pull an image
Download an image from a registry.
OpenIn sheetbashsame section
Push an image
Upload an image to a registry.
OpenIn sheetbashsame section
List images
List local images.
OpenIn sheetbashsame section
List images with image namespace
List local images using the image management namespace.
OpenIn sheetbashsame section
Show image history
Show the layer history of an image.
OpenIn sheetbashsame section