远程连接docker
程序员文章站
2022-03-28 12:13:21
vim /usr/lib/systemd/system/docker.service ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock systemctl daemon-reload // 1 ......
- vim /usr/lib/systemd/system/docker.service
- execstart=/usr/bin/dockerd -h tcp://0.0.0.0:2375 -h unix://var/run/docker.sock
- systemctl daemon-reload // 1,加载docker守护线程
- systemctl restart docker // 2,重启docker
上一篇: 哪里不对劲呢
下一篇: Mysql—索引原理与详解