If I have a host that does not have Docker and I am creating libvirt VMs, I would just create a bridge network no my host and then have the VM use that and the VM would get an IP on my router/LAN. This works.
But if I have a host that has Docker installed, this won’t work because docker mucks about with FW rules. So the VMs won’t get an IP.
I’m desperate to figure out how to get this to work? There must be a way to make it so a libvirt VM get an IP from my router on a host that’s also running Docker.
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.
You could disable manipulating iptables, but as the documentation says, you can’t completely disable it and it will break your container networking.
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.
Again, this might not be a solution for you, but you could run Docker in a virtual machine.