'ERROR: Pool overlaps with other one on this address space when starting my_project docker setup

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?



Solution 1:[1]

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)

Solution 2:[2]

remove one or more network in the result of docker network ls with docker network rm ID

Solution 3:[3]

if you don't mind delete all docker networks, you could run

docker network rm $(docker network ls -q)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Hamid Shariati
Solution 3 Adán Escobar