Docker Community Forums

Share and learn in the Docker community.

Problem with docker on ubuntu VM


(Jmsa77) #1

There isn’t a docker for ubuntu forum, so I post this in the general discussions
I have a problem using docker in a Ubuntu 16.04 LTS virtual machine. Out of the box, the Ubuntu VM gets internet through the host OS (windows 10 pro within a domain) through the NAT option of virtual box.
After launch a clean Ubuntu, I installed docker-ce version 18.03.1 following the intructions in


The problem is that the brigde interface ‘docker0’ brokes the internet and I only can get the internet back, if I turn off docker0

is this a bug?? is this happening to someone else?

here are some config I have (it’s all by default, it’s an untouched Ubuntu)

nmcli device status:

docker0 brigde      connected   docker0
enp0s3  ethernet    connected   Wired connection 1
lo      loopback    unmanaged   --

ifconfig:

docker0   Link encap:Ethernet  HWaddr 02:42:40:2a:c5:ac  
          inet addr:172.17.0.1  Bcast:172.17.255.255  Mask:255.255.0.0

enp0s3    Link encap:Ethernet  HWaddr 08:00:27:57:af:e4  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0

route -n:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.2.2        0.0.0.0         UG    100    0        0 enp0s3
10.0.2.0        0.0.0.0         255.255.255.0   U     100    0        0 enp0s3
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 enp0s3
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0

docker network ls

NETWORK ID          NAME                DRIVER              SCOPE
357f65a4b16e        bridge              bridge              local
8ba7ce283fd1        host                host                local
0aa5fcaafe8b        none                null                local

thanks in advance