How to solve “docker: Error response from daemon … iptables failed”

Authmane Terki
1 min readDec 31, 2019

--

Hello,

I just had this error:

Removing network docker_default
WARNING: Network docker_default not found.
...
Status: Image is up to date for certbot/certbot:latest
docker.io/certbot/certbot:latest
docker: Error response from daemon: driver failed programming external connectivity on endpoint certbot (8149e65ee1ff0152bed82aab1f48fda3a1ecf802e1f215946e5a875bc9c47654): (iptables failed: iptables --wait -t filter -A DOCKER ! -i docker0 -o docker0 -p tcp -d 172.17.0.2 --dport 443 -j ACCEPT: iptables: No chain/target/match by that name.
(exit status 1)).

It happen if you update your iptables rules while Docker is open. Actually it can be solved easily.

Just restart Docker:

sudo systemctl restart docker

Hope it helped you!

--

--