1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/opts
Arko Dasgupta 92e809a680 Support host.docker.internal in dockerd on Linux
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>
2020-01-22 13:30:00 -08:00
..
address_pools.go
address_pools_test.go
env.go
env_test.go Remove unused functions, variables, fields 2019-09-18 12:57:12 +02:00
hosts.go Support host.docker.internal in dockerd on Linux 2020-01-22 13:30:00 -08:00
hosts_test.go Adjust tests for changes in Go 1.12.8 / 1.11.13 2019-08-14 02:51:08 +02:00
hosts_unix.go
hosts_windows.go
ip.go
ip_test.go
opts.go goimports: fix imports 2019-09-18 12:56:54 +02:00
opts_test.go
opts_unix.go
opts_windows.go Remove refs to jhowardmsft from .go code 2019-09-25 10:51:18 -07:00
quotedstring.go
quotedstring_test.go
runtime.go
ulimit.go goimports: fix imports 2019-09-18 12:56:54 +02:00
ulimit_test.go TestUlimitOpt: fix composite literal uses unkeyed fields (govet) 2019-09-18 12:57:34 +02:00