Every Waddle project creates its own Docker bridge network. A project with network isolation between its services turned on can use up to five instead of just one. Docker allocates all of these from a default address pool. Out of the box that pool is small enough that users who run many projects simultaneously (especially several with isolation enabled) can exhaust it and see errors like:
could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
The fix is to tell Docker to carve smaller subnets out of its address pool, or to add more address
ranges to the pool, via the Docker daemon configuration file (daemon.json). This isn’t
Waddle-specific: it’s how Docker itself works, and the fix applies the same way to any project
using enough Docker networks to hit the limit.
Waddle can handle this for you
Before you need to touch daemon.json at all, Waddle has a first line of defense built in: when
the address pool is exhausted, it stops whichever project has been running the longest, freeing a
slot for the project you’re starting or building, and keeps stopping the next-longest-running
project if that still isn’t enough.
This is on by default, but it’s a choice, not a requirement. You can turn it off during installation, or later from the global Auto-shutdown for network capacity setting in the Waddle GUI. With it off, Waddle shows a dismissable error instead, so you can choose which project to stop yourself.
Why the default runs out
Docker doesn’t generate its built-in default from a single base-and-size pair the way
default-address-pools does once you configure it yourself. Out of the box it draws from two
separate, fixed pools instead:
- Fifteen individual
/16networks,172.17.0.0/16through172.31.0.0/16, 65,536 addresses each - Sixteen
/20networks carved out of192.168.0.0/16, 4,096 addresses each
That’s roughly 31 networks total before the pool is exhausted, not much once you remember that a single project with network isolation enabled can use up to five by itself.
The configuration to add
Unlike the built-in default, the default-address-pools key really does work by splitting a
base block evenly at the given size. A /12 base holds 1,048,576 addresses; carving it into
/24 networks (256 addresses each, more than enough for Waddle services) gives Docker room for
4,096 networks from that block alone. Open daemon.json (paths below), merge in the
default-address-pools key, save, and restart Docker:
{
"default-address-pools": [
{ "base": "172.17.0.0/12", "size": 24 },
{ "base": "192.168.0.0/16", "size": 24 }
]
}
If daemon.json already has other content, add only the default-address-pools key; don’t
replace the whole file.
Note on existing networks: changing
default-address-poolsonly affects newly created networks. Existing project networks keep their current subnets until they are removed and recreated (e.g. withdocker compose downfollowed bydocker compose up).
Linux
Docker on Linux reads /etc/docker/daemon.json.
1. Open the file with root privileges (create it if it doesn’t exist):
sudo nano /etc/docker/daemon.json
2. Add or merge the default-address-pools key shown above.
3. Restart Docker:
sudo systemctl restart docker
4. Verify the daemon restarted cleanly:
sudo systemctl status docker
macOS
Docker Desktop on macOS manages daemon.json through its own settings UI; editing the file
directly on disk is not recommended, since Docker Desktop may overwrite it.
- Open Docker Desktop.
- Go to Settings (gear icon) then Docker Engine.
- You’ll see a JSON editor. Add or merge the
default-address-poolskey into the JSON shown there. - Click Apply & Restart.
Docker Desktop validates the JSON before applying it; if there’s a syntax error it will refuse to save and show an error.
Windows
Docker Desktop on Windows works the same way as macOS.
- Open Docker Desktop.
- Go to Settings (gear icon) then Docker Engine.
- Add or merge the
default-address-poolskey into the JSON editor. - Click Apply & Restart.
If you’re using Docker Engine directly, without Docker Desktop (e.g. inside WSL 2), the
daemon.json file lives at %PROGRAMDATA%\docker\config\daemon.json
(C:\ProgramData\docker\config\daemon.json). Edit it there and restart the Docker service from
an elevated PowerShell prompt:
Restart-Service docker
Checking available networks after the change
Once Docker has restarted you can confirm the new pool is in effect by creating a test network and inspecting its subnet, then removing it:
docker network create test-pool-check
docker network inspect test-pool-check --format '{{range .IPAM.Config}}{{.Subnet}}{{end}}'
docker network rm test-pool-check
The subnet should now be a /24 rather than a /16.