[KongchangAI]
ConceptDocker 宿主机内部域名

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)

Nov 9

Docker Desktop for Windows supports accessing the host machine from containers using the host.docker.internal domain name by default.

Unverified50%
Sep 18

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.

Verified65%

All Facts (2)

Source Articles