[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.

Timeline (last 90 days)

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.

Unverified50%

All Facts (1)

Source Articles