docker 容器内部访问宿主机

在宿主机执行:

ifconfig

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

猜你喜欢

转载自www.cnblogs.com/savokiss/p/11650025.html