Docker - Migration backup

The container package is essentially a mirror image
compression, spread to other machines
other machines load back, you can see the image, run up, ran up direct container

Storage containers for the mirror

We can save the following command vessel for the mirror

docker commit mynginx mynginx_i

Image backup

We can save the image with the following command as tar files

docker  save -o mynginx.tar mynginx_i

Mirroring recovery and migration

First we removed mynginx_img mirror and then execute the command to be restored

docker load -i mynginx.tar

-I input file

After performing to view mirror again, you can see the image has been restored

Guess you like

Origin www.cnblogs.com/waller/p/12109151.html