Docker Community Forums

Share and learn in the Docker community.

Cannot create network - "iptables: Resource temporarily unavailable"


#1

Hi

I get the following error when my build server tries to create a network:

cannot create network bfe9abfd499e27a9d771e1f43ee0332d4dcbcfbc26017a6fce4618c3e71af92e (br-bfe9abfd499e): conflicts with network 0564203f5eaec4495ec71a66e034d76707e0751635acf129a580ff32a45e0a4e (br-0564203f5eae): networks have overlapping IPv4

Checking with “docker network ls”, I cannot find a network with the ID (0564203f5eaec4495ec71a66e034d76707e0751635acf129a580ff32a45e0a4e) of the “existing” network. I checked journalctl and found the error:

Dec 18 15:20:03 dockerd[819]: time="2018-12-18T15:20:03.164641457Z" level=error msg="Handler for POST /v1.24/networks/create returned error: Failed to Setup IP tables: Unable to allow intercontainer communication:  (iptables failed: iptables --wait -I FORWARD -i br-0564203f5eae -o br-0564203f5eae -j ACCEPT: iptables: Resource temporarily unavailable.\n (exit status 4))"

So dockerd got an error during the creation of the network. It has happened a few times over the last couple of days.

Manually running:

ip link delete br-0564203f5eae type bridge

and restarting the docker service fixed the issue.

Can you help me avoid the issue?

I am runnning “centos-release-7-6.1810.2.el7.centos.x86_64” with docker version

Client:
 Version:	18.03.0-ce
 API version:	1.37
 Go version:	go1.9.4
 Git commit:	0520e24
 Built:	Wed Mar 21 23:09:15 2018
 OS/Arch:	linux/amd64
 Experimental:	false
 Orchestrator:	swarm

Server:
 Engine:
  Version:	18.03.0-ce
  API version:	1.37 (minimum version 1.12)
  Go version:	go1.9.4
  Git commit:	0520e24
  Built:	Wed Mar 21 23:13:03 2018
  OS/Arch:	linux/amd64
  Experimental:	false

and docker compose version

1.18.0, build 8dd22a9

#2

So we upgraded to 18.09, did not solve the issue, then downgraded to 17.09 (the release we came from) and the issue is gone again. but this workaround is not realy pointing forwards. How can we proceed with this?