18

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?

Matthias Braun
  • 32,039
  • 22
  • 142
  • 171

3 Answers3

36

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

  • Same happened to me with docker-compose version 1.11.1, build 7c5d5e4 on Debian 8 (jessie) using OpenVPN. – paprika May 29 '17 at 21:27
  • 2
    If you need both openvpn and docker running here is possible solution: https://stackoverflow.com/q/45692255/7918 . – jb. Aug 15 '17 at 14:34
29

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
Matthias Braun
  • 32,039
  • 22
  • 142
  • 171
  • 15
    Or, in recent docker versions: `docker network prune` – Martijn May 09 '17 at 11:04
  • This return error: ``` Error response from daemon: bridge is a pre-defined network and cannot be removed Error response from daemon: host is a pre-defined network and cannot be removed Error response from daemon: none is a pre-defined network and cannot be removed root@sham-Inspiron-7472:/home/sham/uol/RegistraSeguro/devstack# ``` – Sham Fiorin Apr 29 '20 at 15:12
0
docker-compose down
docker network prune
Flavio Troia
  • 2,451
  • 1
  • 25
  • 27
  • 2
    Please can you explain how this solves the problem? Take some time to read [answer] and edit your answer please. Code only answers may get deleted as they provide no information for future readers – Simply Ged May 25 '19 at 03:23
  • It [could](https://github.com/maxking/docker-mailman/issues/85#issuecomment-349429246), and it's obivious how. – homk Jul 07 '22 at 17:19