我的我的宿主机是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... This article clearly states that it is impossible to ping the container on mac due to system limitations
"Because the host of docker is a virtual machine of boot2docker, you need to use the IP of the virtual machine to access boot2docker. Obtain the IP and then access." Please ask, what does this mean? Mine is toolbox installed on a Mac. The container can ping the host and the external network, but the host machine cannot ping the container. Do you know how to solve it?