docker开启2375端口



修改/etc/docker/daemon.json,添加hosts部分 { “hosts”: [ “unix:///var/run/docker.sock”, “tcp://0.0.0.0:2375” ], “registry-mirrors”: [ “https://docker.hpcloud.cloud”, “https://docker.m.daocloud.io”, “https://docker.unsee.tech”, “https://docker.1panel.live”, “http://mirrors.ustc.edu.cn”, “https://docker.chenby.cn”, “http://mirror.azure.cn”, “https://dockerpull.org”, “https://dockerhub.icu”, “https://hub.rat.dev” ] } 修改/usr/lib/systemd/system/docker.service 修改如下:

ExecStart=/usr/bin/dockerd -H fd:// –containerd=/run/containerd/containerd.sock

ExecStart=/usr/bin/dockerd 重启 划重点:systemctl daemon-reload 然后:systemctl restart docker