Interview Prep/Docker/Daemon, install and permissions

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.

All Docker questions Roadmap: Docker & containers

More on Daemon, install and permissions