Docker Community Forums

Share and learn in the Docker community.

Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network

I have a fresh docker installation running on Ubuntu 18.04 LTE

When I try to create a new network it fails:

$ docker network create test
Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
$ docker network ls
NETWORK ID          NAME                DRIVER              SCOPE
fed3902b248e        bridge              bridge              local
979af7e91a80        host                host                local
5b17cb218199        none                null                local

ifconfig says:

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:88:98:67:9c  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.21.196.46  netmask 255.255.255.0  broadcast 172.21.196.255
        inet6 fe80::250:56ff:fea4:2e24  prefixlen 64  scopeid 0x20<link>
        ether 00:50:56:a4:2e:24  txqueuelen 1000  (Ethernet)
        RX packets 3949  bytes 460088 (460.0 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3004  bytes 529203 (529.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.21.136.46  netmask 255.255.255.0  broadcast 172.21.136.255
        inet6 fe80::250:56ff:fea4:1267  prefixlen 64  scopeid 0x20<link>
        ether 00:50:56:a4:12:67  txqueuelen 1000  (Ethernet)
        RX packets 702  bytes 71397 (71.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 121  bytes 11141 (11.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Lokale Schleife)
        RX packets 1795  bytes 297877 (297.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1795  bytes 297877 (297.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

routes:

0.0.0.0         172.21.136.254  0.0.0.0         UG    20101  0        0 ens192
10.0.0.0        172.21.196.254  255.0.0.0       UG    200    0        0 ens160
129.247.0.0     172.21.196.254  255.255.0.0     UG    200    0        0 ens160
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 ens160
172.16.0.0      172.21.196.254  255.240.0.0     UG    200    0        0 ens160
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
172.21.136.0    0.0.0.0         255.255.255.0   U     101    0        0 ens192
172.21.196.0    0.0.0.0         255.255.255.0   U     100    0        0 ens160
192.108.54.0    172.21.196.254  255.255.255.0   UG    200    0        0 ens160
192.168.0.0     172.21.196.254  255.255.0.0     UG    200    0        0 ens160

iptables:

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy DROP)
target     prot opt source               destination         
DOCKER-USER  all  --  anywhere             anywhere            
DOCKER-ISOLATION-STAGE-1  all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
DOCKER     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain DOCKER (1 references)
target     prot opt source               destination         

Chain DOCKER-ISOLATION-STAGE-1 (1 references)
target     prot opt source               destination         
DOCKER-ISOLATION-STAGE-2  all  --  anywhere             anywhere            
RETURN     all  --  anywhere             anywhere            

Chain DOCKER-ISOLATION-STAGE-2 (1 references)
target     prot opt source               destination         
DROP       all  --  anywhere             anywhere            
RETURN     all  --  anywhere             anywhere            

Chain DOCKER-USER (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere 

Any ideas what could be wrong?