I'm having an interesting problem running docker containers: out of the blue, I'm not able to resolve DNS from within the container.
Here's a rundown:
Nothing is resolving; apt-get, pip, one-off ping containers, etc. Running
docker run -it --dns=8.8.8.8 ubuntu ping www.google.comresults inping: unknown host www.google.comboth with and without the--dnsflag.I can reach 8.8.8.8 both from inside and outside the containers.
docker run -it ubuntu ping 8.8.8.8works.I've configured the containers to use both 8.8.8.8, 8.8.8.4, and my local network DNS servers (in various permutations) both by editing
/etc/sysconfig/dockerto addDOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.8.4"and by setting the--dns 8.8.8.8flag on the containers at runtime.systemctl restart dockerwas run between each change.ip_forwardis enabled. (see here)I've done a full reset as specified here.
I'm running Fedora 21, docker client version 1.5.0.
Any ideas? I'm at a complete loss as to what's preventing docker from accessing the Internet successfully.