-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
host.docker.internal is not resolved by nginx #259
Comments
Well, seems to be a general Docker issue |
host.docker.internal
is not resolved by nginx
I am still facing this issue. Any work around ?
But still it is not working in nginx any workaround ? |
Same here! |
This looks to be an issue with Perhaps a feature request to add |
Just came across this bug too (seems linked to #1225). To confirm, when I run the following command: I can happily ping 172.17.0.1 as well as host.docker.internal and can also wget to the service running on the host However when setting up an NPM proxy pointed to (Just to confirm this is with the following text added to the nginx proxy manager Docker compose file too, so the host should have been mapped OK at a container level.)
|
|
+1 ^^ @EDIflyer |
Only workaround that I found, for development environment on the same machine, is to set network_mode: host, removing the ports and then forwarding to localhost. It's not the best but considering the fact that I'm using it to resolve names for local development, works for me
|
@KeivanDjafarizad I also have network_mode: host , |
Is this actually resolved? Or is there any other issue to follow? |
The issue is with Docker's default DNS 127.0.0.11 because it does not include
|
Checklist
jc21/nginx-proxy-manager:latest
docker image?✔️
✔️
Describe the bug
host.docker.internal
is not resolved by nginxTo Reproduce
Steps to reproduce the behavior:
host.docker.internal
as targethost.docker.internal:5000
Expected behavior
The NPM proxied domain, should show the page running under 127.0.0.1 on the Docker host
Workaround
If I ping
host.docker.internal
on the runningapp
container and use the resulting IP as target it worksOperating System
macOS
The text was updated successfully, but these errors were encountered: