docker 容器内部访问宿主机

在宿主机执行:

ifconfig

然后查看 docker0 的那个网卡的 ip 地址,比如我的是 172.18.0.1

 

posted @ 2019-10-10 19:18  savokiss  阅读(1855)  评论(0编辑  收藏  举报