1、修改 docker服务配置信息
sudo vim /lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd -H unix:///var/run/docker.sock
改成
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2374 -H unix:///var/run/docker.sock
2、重启客户端docker服务
sudo systemctl daemon-reload && sudo systemctl restart docker
标签:ExecStart,0.0,sudo,链接,unix,dockerd,docker,Docker,远程 From: https://www.cnblogs.com/ijtihat/p/17696509.html