debian 环境:
vi /lib/systemd/system/dcoker.service
修改:
ExecStart=/usr/bin/dockerd -H fd://
为
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375
systemctl daemon-reload
systemctl restart docker.service
debian 环境:
vi /lib/systemd/system/dcoker.service
修改:
ExecStart=/usr/bin/dockerd -H fd://
为
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375
systemctl daemon-reload
systemctl restart docker.service
转载于:https://www.cnblogs.com/xIron/p/10637246.html