Create a mirror through the window

After starting the window, use the following command into the container

docker run -itd centos /启动

docker ps  //查看启动的镜像

docker exec -it ID号 bash (docker exec -it 4e3bf0 bash)

Create a mirror through the window

It may be the same as normal after the operation went, but it is a simplified version of the system.

Exit container:
exit or ctrl + d

Made of mirror
docker commit -m "install net-tools" -a "test" 4e3bf0 centos_nettools
-m plus some changes to information, -a specify this string of information 4e3bf0 container id, then back to the new image name!
Create a mirror through the window

Guess you like

Origin blog.51cto.com/10690709/2429808