Backup and Migration
-
Storage containers for the mirror
We can save the following command vessel for the mirror
docker commit pyg_nginx mynginx
pyg_nginx is the name of the vessel
mynginx is the new image name
The contents of this mirror is your current contents of the container, then you can use this image to run again new container
-
Image backup
docker save -o mynginx.tar mynginx
-o output to a file
After the execution, run the ls command to see labeled as a tar package
-
Mirroring recovery and migration
First we removed the mirror mynginx
Then execute this command to recover
docker load -i mynginx.tar
-I input file
After performing to view mirror again, you can see the image has been restored