Skip to content
Discussion options

You must be logged in to vote

Inside the container, localhost is the container itself, not the host — so it can't see a service bound to the host's localhost. On Docker Desktop (Mac/Windows) use the special DNS name host.docker.internal to reach the host. On Linux, add --add-host=host.docker.internal:host-gateway (or use the host network / the gateway IP).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kevinchamplin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant