"Incorrect" host-gateway in case with Rootless Docker #47684
Labels
area/networking
area/rootless
Rootless mode
kind/enhancement
Enhancements are not bugs or new features but can improve usability or performance.
status/0-triage
Description
When use
extra_hosts: "host.docker.internal:host-gateway"
it use incorrect IP address to connect to host.host.docker.internal
equal to172.17.0.1
but should10.0.2.2
Reproduce
Expected behavior
host.docker.internal
should be equal to10.0.2.2
docker version
docker info
Additional Info
I know that I can use
extra_hosts: "host.docker.internal:10.0.2.2"
but I think that better way to not change code instead of hard code IPs.The text was updated successfully, but these errors were encountered: