!!!!!!!!mac电脑docker 宿主机 ping 不通容器网络 !!!!!!!!

我的我的宿主机是mac,容器系统是centos7,在里面安装了nginx,并且运行了。

下面是我的docker容器的inspect 网络的相关信息,我接口隐射是 0.0.0.0:32768->80/tcp

"Networks": {

            "bridge": {

                "EndpointID": "3baeeaabe81b5d3b38ef9db487843e93727a1ae00718bb912d574e947a7cb308",

                "Gateway": "172.17.0.1",

                "IPAddress": "172.17.0.3",

                "IPPrefixLen": 16,

                "IPv6Gateway": "",

                "GlobalIPv6Address": "",

                "GlobalIPv6PrefixLen": 0,

                "MacAddress": "02:42:ac:11:00:03"

            }

        }

但是我在宿主机 ping不通 172.17.0.3,也打开不了127.0.0.1:32768

https://docs.docker.com/docke... 这篇文章明确的说了, mac下是由于系统限制是无法ping通容器的

http://www.imooc.com/wenda/detail/425969

猜你喜欢

转载自blog.csdn.net/m0_37477061/article/details/89422451