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 Various code-cleanup 2018-05-23 17:50:54 +02:00
address_pools_test.go Allow user to control the default address pools 2018-04-30 11:14:08 -04:00
env.go Add canonical import comment 2018-02-05 16:51:57 -05:00
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 Add canonical import comment 2018-02-05 16:51:57 -05:00
hosts_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
ip.go Add canonical import comment 2018-02-05 16:51:57 -05:00
ip_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
opts.go goimports: fix imports 2019-09-18 12:56:54 +02:00
opts_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
opts_unix.go Add canonical import comment 2018-02-05 16:51:57 -05:00
opts_windows.go Remove refs to jhowardmsft from .go code 2019-09-25 10:51:18 -07:00
quotedstring.go Add canonical import comment 2018-02-05 16:51:57 -05:00
quotedstring_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
runtime.go Add canonical import comment 2018-02-05 16:51:57 -05:00
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