# Docker install breaks virtual network bridge

**URL:** <https://forums.docker.com/t/docker-install-breaks-virtual-network-bridge/85705>\
**Category:** General\
**Created:** [December 11, 2019, 11:57pm UTC](https://forums.docker.com/t/docker-install-breaks-virtual-network-bridge/85705 "2019-12-11T23:57:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaels2408](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@michaels2408](https://forums.docker.com/u/michaels2408)\
**Post date:** [December 11, 2019, 11:57pm UTC](https://forums.docker.com/t/docker-install-breaks-virtual-network-bridge/85705/1 "2019-12-11T23:57:20Z")

</div>

Hello and good day. I am very new to using Docker. Wanting to experiment setting up a MariaDB, Apache2, Guacamole, and Owncloud servers all linked via dockers. I currently have a similar setup as Virtual machines via Qemu/KVM using Virtual Manager on an Ubuntu 19.10 desktop.  
So, basically I have my virtual machines grabbing local network IP’s from my router via a virtual network bridge. Using this setup does break the managed network functionality of Ubuntu desktop, but does not break networking itself. This is accomplished by adding the following lines to my /etc/network/interfaces file: apologize if the code looks bad as I am not sure how to place code snips in this forum.

# interfaces(5) file used by ifup(8) and ifdown(8)

auto lo  
iface lo inet loopback

auto enp6s0  
iface enp6s0 inet manual

auto virbr2  
iface virbr2 inet dhcp  
bridge\_ports enp6s0  
bridge\_stp off

Before installing Docker, this worked fine. My desktop grabs the IP assigned by the router via mac address. Then the VM network cards are pointed to the virtual bridge virbr2. When they start they are getting there own IP addresses directly from my router. As soon as I install docker the docker0 virtual network bridge moves to the very top of my network adapter list and the VM’s are no longer able to grab IP addresses from the router DHCP server. The main Desktop although can still grab its IP address under the virbr2 adapter. Once I uninstalled Docker this functionally returned and all was normal again. Thoughts?

Any help would be greatly appreciated as I am still in a learning curve.  
Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![hakayova](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/hakayova/32/26206_2.png) [@hakayova](https://forums.docker.com/u/hakayova)\
**Post date:** [January 18, 2020, 6:32am UTC](https://forums.docker.com/t/docker-install-breaks-virtual-network-bridge/85705/2 "2020-01-18T06:32:35Z")

</div>

I am not sure if this is your problem or if the solution recommended [here](https://wiki.archlinux.org/index.php/Docker#Starting_Docker_breaks_KVM_bridged_networking) will solve your problem, but this is the main reason for me to not use docker on my main computer since it has a few QEMU VMs. I hope it helps!

---

<div class="post-metadata">

**Author:** ![meyay](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/meyay/32/34000_2.png) [@meyay](https://forums.docker.com/u/meyay)\
**Post date:** [January 18, 2020, 10:45am UTC](https://forums.docker.com/t/docker-install-breaks-virtual-network-bridge/85705/3 "2020-01-18T10:45:23Z")

</div>

Though, be aware that one of the aspects of dockers usuability is that it modifies iptables rules as required to make incomming/outgoing network communication to the containers work. If you disable the iptables feature of the engine, you will have to figure out and apply the required iptables rules by yourself.
