Increase limit of 30 docker networks in a clean way

OK, i tested it and it works

  1. cd /etc/docker
  2. sudo touch daemon.json
  3. vi daemon.json
  4. Insert & Safe
{
   "default-address-pools": [
        {
            "base":"172.17.0.0/12",
            "size":16
        },
        {
            "base":"192.168.0.0/16",
            "size":20
        },
        {
            "base":"10.99.0.0/16",
            "size":24
        }
    ]
}
  1. sudo systemctl restart docker

Now i was able to deploy more Stacks
Im not a networking genious but the Source Article tells me that i should now have additional 255 networks

  • This persisted also after boot
  • I could reach the port of a Stack/Docker-Compose i started → No networking issues so far

I will add this to my ToDo-List when setting up a CoreOS System

Still … I find it weird to have standard-settings limiting this to such a low number by default