1 minute read

I have been running the good’ol docker-compose for too long and have been meaning to upgrade to docker compose for quite a while. Yesterday, it was time, but I got thrown a real curve ball by the Docker network daemon (if that’s what you call it).

Overlapping subnets

I’ll spare you 4h of troubleshooting, trying to figure out why pretty much all of my Docker-stuff was working just fine, but my surveillance system did not. I found the issue when I tried pinging one of my cameras in Pinging from my workstation worked fine, but pinging from the server1 did not work. This is weird, because both are in the subnet.

When pinging from the server, I noticed that ping used a gateway it shouldn’t:

What I finally concluded was that Docker had created a bridge network for my Graylog deployment with the subnet mask: This CIDR spans: - which is a problem, because I have VLANs for 192.168.[10,20,30,40].0/24.

Since the interface only existed on the server1, all my RTSP debugging on my workstation was pointless…

Removing the overlapping subnet

Luckily for me the “solution” was to do docker compose down on the Graylog deployment and then docker compose up again. This created a new non-overlapping bridge network.

After investigating further I have found that it is possible to:

  1. Specify the subnet for a bridge network upon creation [LINK].
  2. Set the default subnet from the Docker daemon [LINK].

I am not sure whether the second option hinders the daemon from creating new networks outside the default range or the configuration just applies to “the first network” which is created.

  1. Yes, I know the hostname says ubuntu-desktop. The “server” is actually my gaming computer, which is repurposed and has been acting as a server for the past couple of years.  2