Not able to connect to host from within docker container using host.docker.internal #7611
Labels
area/networking
kind/bug
Something isn't working
parity/project
Feature is available from other projects
triage/need-to-repro
Needs to be reproduced by dev team
Actual Behavior
When trying to do a DNS lookup of the hostname
host.docker.internal
, a faulty IP address is being returnedSteps to Reproduce
Result
The
172.17.0.1
is not the correct IP. This is not the IP of the host machine. If I rerun the whole exercise but without:and I try to do a curl again, I actually get to the correct IP. Unfortunately, these lines are in our Docker compose file because we have a shared configuration with Linux users
Expected Behavior
When resolving
host.docker.internal
, a DNS lookup should return the correct IP address of the hostmachineAdditional Information
This is working perfectly fine with Docker Desktop. We ran into this issue as we switched to Rancher Desktop
Rancher Desktop Version
1.16.0
Rancher Desktop K8s Version
N/A
Which container engine are you using?
moby (docker cli)
What operating system are you using?
macOS
Operating System / Build Version
macOS Sequioa 15.0.1
What CPU architecture are you using?
arm64 (Apple Silicon)
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
No response
The text was updated successfully, but these errors were encountered: