1
Fork 0

Use IANA-approved ranges for private network

These IPs were technically allocated to internet users, which could have caused some major issues.
This commit is contained in:
Jake Howard 2021-12-09 19:08:00 +00:00
parent 1ddeee76f8
commit 98944aeef0
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -32,12 +32,12 @@ To explicitly add address space for your containers, an entry needs to be added
{
...
"default-address-pools":[
{"base":"172.80.0.0/16","size":24},
{"base":"172.90.0.0/16","size":24}
{"base":"172.20.0.0/16","size":24},
{"base":"172.21.0.0/16","size":24}
]
}
```
This configuration will allow Docker to allocate `172.80.[0-255].0/24` and `172.90.[0-255].0/24`, which allows a total of 256 addresses to each network, and a total of 512 networks.
This configuration will allow Docker to allocate `172.20.[0-255].0/24` and `172.21.[0-255].0/24`, which allows a total of 256 addresses to each network, and a total of 512 networks.
The day you hit that limit is the day you've done something wrong!