Home > Back-end >  host.docker.internal didn’t send any data for WebStatus endpoint
host.docker.internal didn’t send any data for WebStatus endpoint

Time:08-03

I am trying to run enter image description here

But when I try to access to enter image description here

CodePudding user response:

host.docker.internal is for docker internal communication mainly - not external connection to container (for example from localhost). You can open any container in docker desktop and try clicking browse web (if applicable) or as suggested above in comments use localhost:5107

A little background from docker documentation:

I want to connect from a container to a service on the host

The host has a changing IP address (or none if you have no network access). We recommend that you connect to the special DNS name host.docker.internal which resolves to the internal IP address used by the host. This is for development purpose and does not work in a production environment outside of Docker Desktop.

You can also reach the gateway using gateway.docker.internal

  • Related