Check /etc/resolv.conf every time for 127.* content

Currently if you start the docker -d on a system with 127.0.0.1 in /etc/resolv.conf
It will set the default dns to 8.8.8.8 8.8.4.4 permanently.

This causes a problem at boot on Fedora machines where NetworkManager has not
populated /etc/resolv.conf before docker gets started.

This fix checks /etc/resolv.conf on every docker run. And only populates
daemon.config.Dns  if the user specified it on the command line.

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
Test for check /etc/resolv.conf on every docker run for 127.* content.

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
cleanup resolve.conf code

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
Merge pull request #8457 from jfrazelle/pr_8455

Check /etc/resolv.conf every time for 127.* content
Deprecating ResolveRepositoryName

Passing RepositoryInfo to ResolveAuthConfig, pullRepository, and pushRepository

Moving --registry-mirror configuration to registry config

Created resolve_repository job

Repo names with 'index.docker.io' or 'docker.io' are now synonymous with omitting an index name.

Adding test for RepositoryInfo

Adding tests for opts.StringSetOpts and registry.ValidateMirror

Signed-off-by: Don Kjer <don.kjer@gmail.com>
gofmt changes

Signed-off-by: Don Kjer <don.kjer@gmail.com>
Fixing search term use of repoInfo

Signed-off-by: Don Kjer <don.kjer@gmail.com>
Adding integration tests for registry mirror configuration

Signed-off-by: Don Kjer <don.kjer@gmail.com>
First pass at adding --force-fully-qualified

Partial cleanup of job policy flags and configuration.  Created resolve_repository job

More cleanup of registry policies

Deprecating ResolveRepositoryName in favor of ResolveRepositoryInfo

Passing RepositoryInfo to ResolveAuthConfig, pullRepository, and pushRepository

Renaming registry/policy.go to registry/config.go.  Moving --registry-mirror configuration to registry config

Adding Server: prompt to login

Querying daemon for fqn command restrictions on login

Fixing issues with RepositoryInfo.Resolve()

Renaming official index: index.docker.io => docker.io

Removing 'Hostname' from RepositoryInfo
Adding test for ValidateFullyQualifiedCmd