Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't create Docker network

Tags:

docker

I've been able to start my Docker application without a problem but suddenly I get this error:

failed to parse pool request for address space "LocalDefault" pool "" subpool "": could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network

I'm running Docker 1.12.6.

How do I fix this?

like image 681
Matthias Braun Avatar asked Jan 12 '17 18:01

Matthias Braun


People also ask

Which command will successfully create a new Docker bridge network?

Use the docker network create command to create a user-defined bridge network. You can specify the subnet, the IP address range, the gateway, and other options. See the docker network create reference or the output of docker network create --help for details.

How do I get a Docker container network?

Hi, You can find the container & network details by docker inspect container_name To get the container_name, hit this command docker ps I hope this would be useful.


2 Answers

I experienced this issue while running an OpenVPN client which was also my default route. Stopping the OpenVPN client worked around the issue.

like image 111
Dharma Bellamkonda Avatar answered Nov 09 '22 05:11

Dharma Bellamkonda


Turns out there's a limit to the number of simultaneously active Docker networks and I hit that limit.

I got around the issue by removing all my networks:

docker network ls -q | xargs docker network rm
like image 42
Matthias Braun Avatar answered Nov 09 '22 06:11

Matthias Braun