Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 1.07 KB

docker-breaks-kvm-networking.md

File metadata and controls

42 lines (36 loc) · 1.07 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/20230123162835.html
false
false
docker
kvm
bridge
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