环境准备
服务器系统 | Centos7.3 |
---|---|
内存 | 1G |
CPU | 2核 |
IP地址 | 10.0.0.43 |
docker pull centos
docker images
docker run -it centos /bin/bash
yum -y install net-tools
再开一个窗口
docker commit 095f1196d808 centos:ip
docker images
exit
docker run -it centos:ip /bin/bash
exit
docker login
docker tag centos:ip centos:newip