No Internet inside Docker containers

Bug #1506337 reported by Mustafa Muhammad
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
docker.io (Ubuntu)
New
Undecided
Unassigned

Bug Description

I've installed Docker, when I run:
sudo docker run -it debian
I get into the container, but I can't reach anything, ping 8.8.8.8 returns "Destination Host Unreachable"

Using 'ip ad' I get:
mustafa@mustafa-All-Series:~$ ip ad
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether ac:22:0b:c6:6f:d7 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::ae22:bff:fec6:6fd7/64 scope link
       valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::d0fb:3aff:fe0c:36b7/64 scope link
       valid_lft forever preferred_lft forever
5: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1480 qdisc pfifo_fast state UNKNOWN group default qlen 3
    link/ppp
    inet 172.31.1.32 peer 172.31.0.1/32 scope global ppp0
       valid_lft forever preferred_lft forever

The NO-CARRIER thing is strange for docker bridge.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: docker (not installed)
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.1-0ubuntu2
Architecture: amd64
CurrentDesktop: KDE
Date: Thu Oct 15 09:48:30 2015
InstallationDate: Installed on 2015-10-13 (1 days ago)
InstallationMedia: Kubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150924)
SourcePackage: docker
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mustafa Muhammad (mustafa.muhammad) wrote :
Revision history for this message
Tianon Gravi (tianon) wrote :

This was filed against the wrong Docker package (talks about containers); didn't verify whether it's valid but wanted to get it pointed at the right package anyhow.

affects: docker (Ubuntu) → docker.io (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.