我的我的宿主机是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
侃侃尔雅
相关分类