docker mirrored

1. Download Mirror:

docker pull centos:7.2.1511

2. What are the mirror to see the local

docker images

3. Start docker

docker run -ti 8686 (image ID that is mirrored Id)

4. changes mirror

yum install vim

5. Exit Mirror

6. Submission Mirror

docker commit -m "modify vim" xxx_image

7. At this point docker image newly generated image visible

8. By docker save -o data / new / new.tar testimage: latest latest time tag is generated in a mirror file new.tar

9.docker load -i new.tar 

Load the image

 

2 embodiment, by writing dockfile file automatically generated image.

 

Guess you like

Origin www.cnblogs.com/mcy0808/p/10956390.html