You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use host-gateway in compose file, like following:
extra_hosts:
- "foo:host-gateway"
Then foo is resolved to 172.17.0.1, which is unreachable IP address. On the other hand, host.docker.internal is resolved to 192.168.5.2, which is reached to host machine.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I tried to use
host-gateway
in compose file, like following:Then
foo
is resolved to 172.17.0.1, which is unreachable IP address. On the other hand,host.docker.internal
is resolved to 192.168.5.2, which is reached to host machine.Why is
host-gateway
not working?Beta Was this translation helpful? Give feedback.
All reactions