1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon
Phil Estes 93d51e5e97 Clean up localhost resolv logic and add IPv6 support to regexp
Addresses #5811

This cleans up an error in the logic which removes localhost resolvers
from the host resolv.conf at container creation start time. Specifically
when the determination is made if any nameservers are left after
removing localhost resolvers, it was using a string match on the word
"nameserver", which could have been anywhere (including commented out)
leading to incorrect situations where no nameservers were left but the
default ones were not added.

This also adds some complexity to the regular expressions for finding
nameservers in general, as well as matching on localhost resolvers due
to the recent addition of IPv6 support.  Because of IPv6 support now
available in the Docker daemon, the resolvconf code is now aware of
IPv6 enable/disable state and uses that for both filter/cleaning of
nameservers as well as adding default Google DNS (IPv4 only vs. IPv4
and IPv6 if IPv6 enabled).  For all these changes, tests have been
added/strengthened to test these additional capabilities.

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
2015-01-19 19:35:55 -05:00
..
execdriver Adding IPv6 network support to docker 2015-01-09 00:13:09 +01:00
graphdriver Merge pull request #8748 from duglin/Issue8330 2015-01-06 13:47:42 -08:00
networkdriver Adding IPv6 network support to docker 2015-01-09 00:13:09 +01:00
attach.go Use waitgroup instead of iterating errors chan 2015-01-05 18:01:13 -08:00
changes.go Move "changes" to daemon/changes.go 2014-08-01 14:24:46 -04:00
commit.go Make FROM scratch a special cased 'no-base' spec 2014-12-18 14:03:38 -08:00
config.go Adding IPv6 network support to docker 2015-01-09 00:13:09 +01:00
container.go Clean up localhost resolv logic and add IPv6 support to regexp 2015-01-19 19:35:55 -05:00
container_unit_test.go Ensure container names start with a-zA-Z0-9 2014-09-12 10:45:07 -07:00
copy.go Move "copy" to daemon/copy.go 2014-08-01 14:24:41 -04:00
create.go Merge pull request #9603 from hqhq/hq_add_memory_swap 2015-01-06 10:09:21 -08:00
daemon.go Clean up localhost resolv logic and add IPv6 support to regexp 2015-01-19 19:35:55 -05:00
daemon_aufs.go Mass gofmt 2014-10-24 15:11:48 -07:00
daemon_btrfs.go update go import path and libcontainer 2014-07-24 22:19:50 +00:00
daemon_devicemapper.go update go import path and libcontainer 2014-07-24 22:19:50 +00:00
daemon_no_aufs.go update go import path and libcontainer 2014-07-24 22:19:50 +00:00
daemon_overlay.go Remove the last references to overlayfs 2014-12-03 14:06:19 +01:00
daemon_unit_test.go Move security opts to HostConfig 2014-11-25 01:02:30 +02:00
delete.go Error should be 409 as the container is different state to remove 2014-12-19 19:00:28 +00:00
exec.go Merge pull request #9858 from jfrazelle/exec-buildtag 2015-01-06 10:26:21 -08:00
export.go Separate events subsystem 2014-08-06 10:08:19 +00:00
history.go don't call sort for every add in history 2014-05-14 15:02:02 +03:00
image_delete.go Make FROM scratch a special cased 'no-base' spec 2014-12-18 14:03:38 -08:00
info.go Deprecating ResolveRepositoryName 2015-01-08 20:14:58 +00:00
inspect.go add ExecIDs in inspect 2014-12-23 22:03:20 +00:00
kill.go Separate events subsystem 2014-08-06 10:08:19 +00:00
list.go Make FROM scratch a special cased 'no-base' spec 2014-12-18 14:03:38 -08:00
logs.go Fix panic on slow log consumer. 2014-10-30 22:24:57 +02:00
MAINTAINERS Adding Vish as a maintainer for daemon code. 2014-11-12 22:55:32 +00:00
monitor.go restart: Fix an error about arguments missing 2015-01-06 12:25:39 +08:00
network_settings.go Adding IPv6 network support to docker 2015-01-09 00:13:09 +01:00
pause.go Separate events subsystem 2014-08-06 10:08:19 +00:00
README.md Add readme for daemon directory 2014-05-17 17:56:02 +00:00
resize.go Splitting the exec remote API into two separate APIs inorder to support resizing of tty sessions. 2014-09-15 22:56:47 +00:00
restart.go Separate events subsystem 2014-08-06 10:08:19 +00:00
start.go Fix race condition between parseSecurityOpt and container.Mount 2014-12-11 17:22:59 -08:00
state.go Address comments. 2014-11-08 00:14:08 +00:00
state_test.go Fix vet errors about unkeyed fields 2014-12-12 10:44:59 -08:00
stop.go Use State as embedded to Container 2014-09-03 00:01:11 +04:00
top.go Use State as embedded to Container 2014-09-03 00:01:11 +04:00
utils.go User should get error message on wrong config 2014-12-09 21:52:07 +00:00
utils_linux.go --selinux-enabled flag should be ignored on Disabled SELinux systems 2014-09-23 13:21:25 -04:00
utils_nolinux.go --selinux-enabled flag should be ignored on Disabled SELinux systems 2014-09-23 13:21:25 -04:00
utils_test.go Update container resolv.conf when host network changes /etc/resolv.conf 2015-01-08 14:15:13 -05:00
volumes.go Fix volumes-from/bind-mounts passed in on start 2014-12-15 16:51:15 -05:00
wait.go Fix container wait error message to match server template for returning 404 2014-09-19 13:33:00 -04:00

This directory contains code pertaining to running containers and storing images

Code pertaining to running containers:

  • execdriver
  • networkdriver

Code pertaining to storing images:

  • graphdriver