通過容器創建鏡像
進入到容器裏
docker exec -it CONTAINER ID
bash
yum install net-tools -y
系統的網卡多了一個 docker0,ip 爲 172.17.0.1/16
將容器創建爲鏡像
docker commit -m “” -a “” CONTAINER ID
新的鏡像名
docker commit -m "install net-tools" -a "xuepeng" 7120c785d428 centos_with_nettools