host.docker.internal
A special DNS name provided by Docker Desktop on macOS and Windows, used to access the host network from inside a container; it is not available by default in Linux environments and requires manual configuration.
Core Facts
Timeline (last 90 days)
Docker Desktop for Windows supports accessing the host machine from containers using the host.docker.internal domain name by default.
In Docker's network model, containers cannot directly use localhost to access the host machine's MySQL by default; typically the host's actual LAN IP or the special domain name host.docker.internal in Docker Desktop for Windows is needed to point to the host machine.
All Facts (2)
In Docker's network model, containers cannot directly use localhost to access the host machine's MySQL by default; typically the host's actual LAN IP or the special domain name host.docker.internal in Docker Desktop for Windows is needed to point to the host machine.
65%UnverifiedDocker Desktop for Windows supports accessing the host machine from containers using the host.docker.internal domain name by default.
50%