How to access host port from docker container [duplicate]
For all platforms Docker v 20.10 and above (since December 14th 2020) On Linux, add –add-host=host.docker.internal:host-gateway to your Docker command to enable this feature. (See below for Docker Compose configuration.) Use your internal IP address or connect to the special DNS name host.docker.internal which will resolve to the internal IP address used by the host. … Read more