端口未被占用, 防火墙未开的情况下, 在docker配置文件加上以下配置生效
vim /etc/docker/daemon.json
{
"iptables": false,
"ip-forward": true,
"registry-mirrors": ["https://qhy6z317.mirror.aliyuncs.com"]
}
或者
cat <<EOF>> /etc/docker/daemon.json
{
"iptables": false,
"ip-forward": true,
"registry-mirrors": ["https://qhy6z317.mirror.aliyuncs.com"]
}
EOF
然后重启docker
systemctl restart docker
![](https://img.haomeiwen.com/i13223341/1708441276ac5cb4.png)
网友评论