Hi all,
I’ve a strange issue with docker 1.7.1.
I’ve an ubuntu 14.04 64 bit machine.
After some problems with resolveconfig and internet connectivity with my system (finally solved restoring resolv.conf), I’m not able to have internet connection in every container any more. For example if I run docker run -i -t ubuntu ping google.com
I get unknown host
error, or if I try to build a container from debian image (previously working) apt-get fails to find its sources, etc.
I googled and found very few issues like mine, I tried to check for my iptables with sudo iptables -t nat -L -n
but I got:
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DOCKER all -- 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DOCKER all -- 0.0.0.0/0 !127.0.0.0/8 ADDRTYPE match dst-type LOCAL
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 172.17.0.0/16 0.0.0.0/0
Chain DOCKER (2 references)
target prot opt source destination
I tried to set --dns option in docker default config, but nothing.
I have no proxy.
What kind of debug or check can I do to get a clue of what is the problem? Can you help me to restore connectivity?