环境准备
服务器系统
Centos7.3
内存
1G
CPU
2核
IP地址
10.0.0.43
mkdir Dockerfile
cd Dockerfile/
vim Dockerfile
FROM centos
RUN yum -y install net-tools
docker build -t centos:ip .
docker images
docker run --rm -it centos:ip
ifconfig
exit
vim Dockerfile
FROM centos
RUN yum -y install gcc gcc-c+