What is linux equivalent of “host.docker.internal”

前端 未结 9 1186
面向向阳花
面向向阳花 2020-12-02 09:37

On Mac and Windows it is possible to use docker.for.mac.host.internal (replaces docker.for.mac.localhost) and docker.for.win.host.int

9条回答
  •  一个人的身影
    2020-12-02 10:30

    Depends what you're trying to do. If you're running with --net=host, localhost should work fine. If you're using default networking, use the static IP 172.17.0.1. I suspect neither will behave quite the same as those domains.

提交回复
热议问题