How to connect localhost using docker in Mac

385 阅读1分钟

add this to /etc/hosts

127.0.0.1 host.docker.internal

And use host.docker.internal:port to connect.