92e809a680
Docker Desktop (on MAC and Windows hosts) allows containers running inside a Linux VM to connect to the host using the host.docker.internal DNS name, which is implemented by VPNkit (DNS proxy on the host) This PR allows containers to connect to Linux hosts by appending a special string "host-gateway" to --add-host e.g. "--add-host=host.docker.internal:host-gateway" which adds host.docker.internal DNS entry in /etc/hosts and maps it to host-gateway-ip This PR also add a daemon flag call host-gateway-ip which defaults to the default bridge IP Docker Desktop will need to set this field to the Host Proxy IP so DNS requests for host.docker.internal can be routed to VPNkit Addresses: https://github.com/docker/for-linux/issues/264 Signed-off-by: Arko Dasgupta <arko.dasgupta@docker.com> |
||
---|---|---|
.. | ||
address_pools.go | ||
address_pools_test.go | ||
env.go | ||
env_test.go | ||
hosts.go | ||
hosts_test.go | ||
hosts_unix.go | ||
hosts_windows.go | ||
ip.go | ||
ip_test.go | ||
opts.go | ||
opts_test.go | ||
opts_unix.go | ||
opts_windows.go | ||
quotedstring.go | ||
quotedstring_test.go | ||
runtime.go | ||
ulimit.go | ||
ulimit_test.go |