Virtual network interface in Mac OS X

前端 未结 12 2266
礼貌的吻别
礼貌的吻别 2020-12-12 10:15

I know that you can make a virtual network interface in Windows (see here), and in Linux it is also pretty easy with ip-aliases, but does something similar exist for Mac OS

12条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 11:02

    if you are on a dev environment and want access some service already running on localhost/host machine. in docker for mac you have another option.use docker.for.mac.localhost instead of localhost in docker container. docker.for.mac.host.internal should be used instead of docker.for.mac.localhost from Docker Community Edition 17.12.0-ce-mac46 2018-01-09. this allows you to connect to service running on your on mac from within a docker container.please refer below links

    understanding the docker.for.mac.localhost behavior

    release notes

提交回复
热议问题