wget https://yum.dockerproject.org/repo/main/centos/7/Packages/docker-engine-1.12.6-1.el7.centos.x86_64.rpm
wget https://yum.dockerproject.org/repo/main/centos/7/Packages/docker-engine-selinux-1.12.6-1.el7.centos.noarch.rpm
yum localinstall -y docker-engine*
#sed -i 's/fd:\/\//& -H=tcp://0.0.0.0:2375 -H=unix:///var/run/docker.sock --insecure-registry=10.10.36.213/g' /usr/lib/systemd/system/docker.service
systemctl daemon-reload
systemctl start docker
网友评论