I'm trying to setup docker and I`m getting the following error:
ERROR: Pool overlaps with other one on this address space
What should I do to solve it,please?
I'm trying to setup docker and I`m getting the following error:
ERROR: Pool overlaps with other one on this address space
What should I do to solve it,please?
Could you provide us with the command you have run as well as your docker-compose.yml
file please?
The error you are encountering is suggesting you have a network address conflict. To check that you could run: docker network ls
to list all the docker network running currently on your machine.
Once you have identified the culprit you should be able to remove it with the following command: docker network rm my_network
(where my_network
is the one you have created initially)
if you don't mind delete all docker networks, you could run
docker network rm $(docker network ls -q)
remove one or more network in the result of docker network ls
with docker network rm ID
Most likely You try to create a network, which overlaps with an already running container. You may have a docker-compose.yaml file which defines a network with a fixed address.
networks:
hosting:
ipv4_address: 192.168.200.80
The grep Your interfaces
$ ip addr | grep 192.168
inet 192.168.2.2/24 brd 192.168.2.255 scope global noprefixroute enp1s0
inet 192.168.16.1/20 brd 192.168.31.255 scope global br-425bf896730c
inet 192.168.192.1/20 brd 192.168.207.255 scope global br-7bf61cfc0b5a
inet 192.168.48.1/20 brd 192.168.63.255 scope global br-ad263cc0cb22
Notice that 192.168.192.1/20 overlaps with 192.168.200.80
Now br-7bf61cfc0b5a means that the docker network id is 7bf61cfc0b5a
$ docker network ls | grep 7bf61cfc0b5a
7bf61cfc0b5a openvpn_default bridge local
Close openvpn and remove the network
Now the network with the fixed address can go up. Afterwards, openvpn can be started again, and now it will have another automatically assigned IP range.