ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
Did a Docker Host setup on a new Centos OS.
My network uses the subnet: 172.18.0.1/24 but not on this VM so Docker didn’t know not to use this IP space.
After I did the Docker install, I noticed that the docker0 bridge was down because it had setup an IP.
I edited the subnet:
vi /etc/docker/daemon.json
{
“default-address-pools”:
[
{“base”:“172.19.0.0/24”,“size”:24}
]
}
Now I can ip link set docker0 up and all works.
Spun up two containers fine.
Issue is when I try to spin up something that has multiple containers such as RocketChat I get the error:
ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
Followed efault instructions from:
https://docs.rocket.chat/installation/docker-containers
Although running on CentOS not Ubuntu host.
Error when I run the build:
curl -L https://raw.githubusercontent.com/RocketChat/Rocket.Chat/develop/docker-compose.yml -o docker-compose.yml
docker-compose up -d
everything is default install except that one 172.18 to a 172.19.
Do I need to add a Gateway?
I am a bit of a docker noob.
Any help you can provide is greatly appreciated.
Here is some additional info:
docker network ls
NETWORK ID NAME DRIVER SCOPE
7762ab0209a6 bridge bridge local
32ca5b0e588d host host local
283be9dac8b8 none null local
docker network inspect bridge
[
{
“Name”: “bridge”,
“Id”: “7762ab0209a67b7fba9061f388ba810410c71e5932182f79b39335171c483560”,
“Created”: “2020-10-14T12:56:08.751473739-07:00”,
“Scope”: “local”,
“Driver”: “bridge”,
“EnableIPv6”: false,
“IPAM”: {
“Driver”: “default”,
“Options”: null,
“Config”: [
{
“Subnet”: “172.19.0.0/24”
}
]
},
“Internal”: false,
“Attachable”: false,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: {
“27c991d9d443f754719a199a3ca8257aeb14ea63a4cd771d4f50cf54ead6f6cf”: {
“Name”: “determined_knuth”,
“EndpointID”: “ee041910ddc75049a5fda32a5c67d95136b815372ea563328bc6b1b224659d11”,
“MacAddress”: “02:42:ac:13:00:03”,
“IPv4Address”: “172.19.0.3/24”,
“IPv6Address”: “”
}
},
“Options”: {
“com.docker.network.bridge.default_bridge”: “true”,
“com.docker.network.bridge.enable_icc”: “true”,
“com.docker.network.bridge.enable_ip_masquerade”: “true”,
“com.docker.network.bridge.host_binding_ipv4”: “0.0.0.0”,
“com.docker.network.bridge.name”: “docker0”,
“com.docker.network.driver.mtu”: “1500”
},
“Labels”: {}
}
]
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1a:4a:d4:4a:7c brd ff:ff:ff:ff:ff:ff
inet 10.130.1.56/24 brd 10.130.1.255 scope global noprefixroute eth0
valid_lft forever preferred_lft forever
inet6 fe80::2f07:9388:d539:8144/64 scope link noprefixroute
valid_lft forever preferred_lft forever
44: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 02:42:df:58:d0:ff brd ff:ff:ff:ff:ff:ff
inet 172.19.0.1/24 brd 172.19.0.255 scope global docker0
valid_lft forever preferred_lft forever
inet6 fe80::42:dfff:fe58:d0ff/64 scope link
valid_lft forever preferred_lft forever
48: veth2707adc@if47: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP group default
link/ether 02:d4:75:ac:65:40 brd ff:ff:ff:ff:ff:ff link-netnsid 1
inet6 fe80::d4:75ff:feac:6540/64 scope link
valid_lft forever preferred_lft forever
docker-compose --version
docker-compose version 1.24.0, build 0aa59064