Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.08 KB

File metadata and controls

41 lines (36 loc) · 1.08 KB
aliases category classification date date_modified draft id image links local_archive_links pinned print series tags title type
docker-breaks-kvm-networking
network
public
2023-01-23 08:28:35 -0800
2024-09-23 12:01:47 -0700
false
20230123162835
attachments/docker-breaks-kvm-networking.html
false
false
bridge
docker
kvm
network
Fix for Docker Breaking KVM Networking
tech-note

Detailed on the ArchWiki below is a solution to an issue I was having when I tried to use a network bridge br0 alongside Docker on my server.

The solution that I thought worked initially was to add the below to /etc/docker/daemon.json. This got the bridge working for virtual machines, but broke Docker container external connectivity (containers couldn't access the internet).

{
  "bridge": "br0"
}

In the end I needed to run the iptables rule instead, and that got things working for both Docker and the Virtual Machines.

iptables -I FORWARD -i br0 -o br0 -j ACCEPT