(1)開放docker端口,對與centos7下的作法是:linux
vi /etc/sysconfig/docker 加上以下字段: OPTIONS='--selinux-enabled -H unix://var/run/docker.sock -H tcp://0.0.0.0:2375' //重啓docker systemctl daemon-reload systemctl restart docker netstat -nplt |grep 2375