docker-mailman: ERROR: Pool overlaps with other one on this address space

Hi

Thanks for this projet ! Installing Mailman3 is tricky and I hope your docker images will help

However I’m getting an error at the early stage:

$ docker-compose up
Creating network "dockermailman_mailman" with driver "bridge"
ERROR: Pool overlaps with other one on this address space

the host is a regular Linux box:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

$ uname -a
Linux Hammer 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

The docker version seems up to date

docker version
Client:
 Version:      17.05.0-ce
 API version:  1.29
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:10:54 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.05.0-ce
 API version:  1.29 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:10:54 2017
 OS/Arch:      linux/amd64
 Experimental: false

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 11
  • Comments: 28 (3 by maintainers)

Most upvoted comments

In case someone else is google’ing here: Even if the containers are down the networks are still persist. With no container running docker network prune did it. Guess restarting the service returns the same result.

Hi !

Actually it seems that a simple sevirce docker restart solved the issue.

Sorry about that. Thanks for your help !

my case, I have to tun

docker-compose down
docker network prune

Then restart Docker service.

Working when I delete the pool network

docker network ls
NETWORK ID          NAME                          DRIVER              SCOPE  
8518cc751c09        bridge                        bridge              local  
5ebc27713033       pool_network              bridge              local  
25ff8d61d971        host                          host                local  
85c5507b6e64        none                          null                local

remove the pool_network

docker network rm pool_network

docker network prune

I think the semantics depend on how you actually stop the containers, docker-compose stop actually only stops the containers, but, docker-compose down stops and remove the containers & network.

https://docs.docker.com/compose/reference/down/ https://docs.docker.com/compose/reference/stop/

Are you using 172.19.199.1/24 subnet for something else in your network?

The default compose file provided uses this subnet to create a bridge network and allocates static IPs to the containers.

If this subnet is already in use, you can just change it to a different subnet. You’d have to change environment variables and other IPAddresses allocated to each container too.

See the docker-compose.yaml file in the root of the project.

In case someone else is google’ing here: Even if the containers are down the networks are still persist. With no container running docker network prune did it. Guess restarting the service returns the same result.

it´s worked for me. Thanks you.

Change your subnet 172.* to 192.*

In case you are configuring docker networks with bridge mode and in case you are assigning pool of addresses, make sure each stack has a unique subnet, in my case I had two docker-compose files using the same subnet:

    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: 192.168.175.0/24

In my case, subnet 192.168.175.0/24 was used by two stacks, hence the error.

The answer stating to do a docker network prune or service restart are partially correct. Yes indeed it would fix the issue when there is indeed a conflict with IP range. But this does not apply when there are no conflicts :

$ for name in  $(docker network ls --format '{{.Name}}' ) ; do echo $name ; docker inspect $name --format '{{ .IPAM.Config }}' ; done

bridge
[{172.17.0.0/16  172.17.0.1 map[]}]
host
[]
none
[]
staging-***
[{172.108.0.0/24   map[]}]
staging-****
[{172.21.0.0/16  172.21.0.1 map[]}]
staging-***
[{172.24.0.0/16  172.24.0.1 map[]}]
staging-***
[{172.50.0.0/24   map[]}]
staging-***
[{172.25.0.0/16  172.25.0.1 map[]}]
staging-***
[{172.26.0.0/16  172.26.0.1 map[]}]
staging-***
[{172.27.0.0/16  172.27.0.1 map[]}]
staging-***
[{172.22.0.0/16  172.22.0.1 map[]}]
staging-**
[{172.28.0.0/16  172.28.0.1 map[]}]
staging-**
[{172.18.0.0/16 172.18.3.0/24 172.18.3.254 map[]}]

When restarting the compose describing [{172.108.0.0/24 map[]}], it throws the error ’ Pool overlaps with other one on this address space’. The compose is exactly the same than previous run, the IPAM config did not changed, the compose project name is the same. I would expect dockercompose to use the existing same network, not throw an error… And that works fine with a lot of other projects

Not exactly sure about what is going on but this thread from docker might be relevant?

Hi !

Thanks for the quick answer 👍

FTR I am using the docker-compose.yaml file at the root of the project

There’s no other docker containers running on the host while I’m doing this test.

I changed the subnet to 172.20.199.1/24 and modified the other IP adresse accordingly and I still get the same error…