docker访问宿主机端口

DT_M

关注

阅读 80

2022-10-15


是用下面的ip可以访问到宿主机ip:

host.docker.internal

这个就相当于宿主机的localhost,亲测可行。


相关推荐

精彩评论(0)

0 0 举报