Is there anyway to get Docker and libvirt to play along for network bridges?

This is the related documentation

  1. You can add additional rules to the DOCKER-USER chain. This is what I did, but then you need to make sure the rules are added every time you reboot your machine. The “Docker on a router” section in the documentation shows what you could add to the DOCKER-USER chain.
  2. You could disable manipulating iptables, but as the documentation says, you can’t completely disable it and it will break your container networking.
  3. It is not mentioned in the documentation as it is not relevant there, but depending on what you need Docker for, you could use LXD for containers and virtual machines as well. I also switched to LXD from libvirt, but if you want to run Docker containers, you will have the same issue.
  4. Again, this might not be a solution for you, but you could run Docker in a virtual machine.

So I think these are your options.

1 Like