Dismiss
Join GitHub today
GitHub is home to over 20 million developers working together to host
and review code, manage projects, and build software together.
Sign up
#1809
Closed kabhinav opened this issue on Sep 6, 2013 5 comments
No one assigned
I have tried to install docker v0.6 on ubuntu 12.04 today. I have updated my kernel version, but I am unable
to get the networking working inside a container. The commands mentioned in #866 didn't help. Labels
None yet
$ uname -a
3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Projects
$sudo sysctl net.ipv4.ip_forward
None yet
net.ipv4.ip_forward = 1
# docker -d
2013/09/05 17:56:30 WARNING: Your kernel does not support cgroup swap limit.
2013/09/05 17:56:30 Listening for HTTP on /var/run/docker.sock (unix)
$cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
$sudo ifconfig
docker0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:172.17.42.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::24f9:29ff:fec3:205d/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1992 (1.9 KB) TX bytes:8743 (8.7 KB)
$sudo docker run -i -t base ifconfig
eth0 Link encap:Ethernet HWaddr 76:8c:63:3e:8f:a1
inet addr:172.17.0.2 Bcast:172.17.255.255 Mask:255.255.0.0
inet6 addr: fe80::748c:63ff:fe3e:8fa1/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:90 (90.0 B) TX bytes:90 (90.0 B)
@kabhinav Can you ping the DNS servers from within the container? docker run -i -t ubuntu:12.10 ping
8.8.8.8
@kabhinav Ok, the "base" image is no longer supported. The ubuntu images are the only supported
images.
This looks like some kind of problem with your setup, there doesn't seem to be anything wrong with
Docker. Given that you're able to ping the DNS servers, it seems that you're running into some kind of
problem with your network.
@unclejack specifying custom dns servers for my network solved the problems. The correct dns servers
were not specified in my system's /etc/resolv.conf file due to local network resolver in ubuntu 12.04.
#dns=dnsmasq