cnetOS使用Docker

设置DHCP
vi /etc/sysconfig/network-scripts/ifcfg-ens32
(1)bootproto=dhcp

(2)onboot=yes

重启网卡:systemctl restart network

安装Docker
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast
yum -y install docker-ce
systemctl enable docker
service docker start

猜你喜欢

转载自www.cnblogs.com/steinven/p/11779684.html