docker save myrepo/myapp:1.0 -o /backup/myapp.tar

Category: Docker

docker save myrepo/myapp:1.0 -o /backup/myapp.tar

Save an image to a tarball file

Writes the image and its layers to a tar archive at the given path. -o names the output file; without it, the tarball streams to stdout. Restore with docker load -i /backup/myapp.tar on any machine.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.