Backup and Restore Docker Images

How to backup and restore Docker images using save and load

#docker

Backup

The docker save command will stream the content of the image in the screen, so you have to direct it to a file, like:

$ docker save my-image | gzip > my-image.tar.gz

Import

After copying your file to another computer you can import the image like this:

$ zcat my-image.tar.gz | docker load

References