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   --


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

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

lo        Link encap:Local Loopback  
          inet addr:  Mask:

route -n:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface         UG    100    0        0 enp0s3   U     100    0        0 enp0s3     U     1000   0        0 enp0s3     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