Lesson 16 / 26

Container-to-Host Communication

Reach a service running on your host machine from inside a container.

host.docker.internal

From inside a container, localhost refers to the container itself, not your host machine. Use the special DNS name host.docker.internal to reach services running on your host.