I spin up docker containers typically for services like Supabase or Clickhouse/MinIO. Whenever I do, my SSH connection drops. I tried solving the problem first and found on other sources that it was due to conflicting subnets?
So I edited my daemon.json to the following, but to no avail:
I’ve verified that the VM private IP is in a different subnet. Unfortunately a little lost when it comes to networking concepts like this, would appreciate help!
I can offer more info of environment if I can get instructions on how to find/look.
You subnet cidr indeed collides with { "base": "172.28.0.0/14", "size": 16 }.
It shouldn’t have been a problem right away, but eventually docker would have used up all subnets from the other address pools, until it comes to a subnet that collides with your vpc cidr.
A prune doesn’t help for the default bridge, and doesn’t help if containers are attached to the network. Please run a docker inspect with all existing networks, and remove those that are not within your new address pool. If I am not mistaken you would also need to remove the docker0 interface before restarting the docker engine (or the compute node itself) .