1. 开启2375端口,供外部访问docker
vim /usr/lib/systemd/system/docker.service 修改ExecStart为下面一行内容 #ExecStart=/usr/bin/dockerd -H unix:// ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock
stemctl daemon-reload // 1,加载docker守护线程 systemctl restart docker // 2,重启docker
2.