Trying to connect to the host machine from a docker container per the docker docs:
services:
myService:
extra_hosts:
host.docker.internal: host-gateway
Inside the myService container, I’m using curl to try to connect to another service running on the host on port 8002:
> curl http://host.docker.internal:8002
curl: (7) Failed to connect to host.docker.internal port 8002: Connection timed out
What am I missing? Is this a bug?