Use docker container, create a mirror

1 container will save the project being used for the .tar file (docker export)

Docker Export [ the OPTIONS ] CONTAINER example: 
Docker Export - O GS . tar a404c6c174a2 (id container or vessel name) 2 Use the scp command .tar file upload or download 3 Use the .tar file creation docker image (docker import) 





  docker import [OPTIONS] file|URL|- [REPOSITORY[:TAG]]

[g_s@iZ2zeerx7h2y7smeehq3kgZ script_env]$ sudo docker import - gs_env < gs.tar
[sudo] password for gstone: 
aee7aeffdf7879666b4af65ca63f7b4cc68380c5b4de52cca0ff2ff6e1a53

 

 

Guess you like

Origin www.cnblogs.com/maxiaohei/p/11388035.html