1 按顺序执行下面命令
2 nmcli connection modify docker0 connection.zone trusted
3 systemctl stop NetworkManager.service
4 firewall-cmd --permanent --zone=trusted --change-interface=docker0
5 systemctl start NetworkManager.service
6 nmcli connection modify docker0 connection.zone trusted
7 systemctl restart docker.service
解决centos7docker内无法访问宿主机的问题
最新推荐文章于 2024-07-16 16:56:41 发布