欢迎访问我的独立博客

windows宿主机ping不通Docker容器的解决办法

 
网卡上有
 
 
 
docker is not a virtual machine, and you don't get access to the docker host via IP address.
如果想要访问里面的服务,需要先-p暴露端口,然后通过localhost:端口进行访问
ping不通也是可以访问的!
不需要添加什么路由!

posted @ 2018-07-03 14:45  github.com/starRTC  阅读(11248)  评论(2编辑  收藏  举报