Docker service flaps with `failed to start daemon: Error initializing network controller: ... iptables failed`
IntermediateTroubleshootingDaemon, install and permissions
Answer
Likely causes → iptables binary/alternatives mismatch (nft vs legacy), a firewall tool flushing chains, or missing kernel modules.
Diagnose →
iptables --version
update-alternatives --display iptables
journalctl -u docker | grep -i iptables
Fix → Align iptables backend (update-alternatives --set iptables /usr/sbin/iptables-legacy on older Docker, or use nft consistently on newer), reload modules, restart docker after firewalld.
Prevent → Restart Docker after firewall reloads; use DOCKER-USER for rules.
More on Daemon, install and permissions
`Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?`Beginner`permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock`Beginnerdockerd fails to start after editing `daemon.json`: `unable to configure the Docker daemon with file /etc/docker/daemon.json`Intermediate`docker: command not found` right after installing Docker Desktop on macOS.Beginner`docker info` shows `WARNING: bridge-nf-call-iptables is disabled`Intermediate`docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io: no such host`Intermediate