Saturday May 25 2024
GuidesReference
开启远程
1
vi /lib/systemd/system/docker.service
修改配置
1 2
[Service] ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
重启docker
systemctl daemon-reload systemctl restart docker
firewall-cmd 开启端口
firewall-cmd --zone=public --add-port=2375/tcp --permanent