docker/docker — pull request #8455 by rhatdan (2014-10-07 20:20:05+00:00)
Title: Check /etc/resolv.conf on every docker run 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 (github: rhatdan)