How to connect localhost using docker in Mac 哎就是玩儿 2021-09-29 385 阅读1分钟 add this to /etc/hosts 127.0.0.1 host.docker.internal And use host.docker.internal:port to connect.