I have some issues to start docker after reinstall my jetson nano from scratch i try the normal systemctl start docker nothing fail , so try dockerd --debug and get this
DEBU[2025-02-23T11:59:37.483578605+11:00] /usr/sbin/iptables, [–wait -t nat -D PREROUTING -m addrtype --dst-type LOCAL -j DOCKER]
DEBU[2025-02-23T11:59:37.490529660+11:00] /usr/sbin/iptables, [–wait -t nat -D OUTPUT -m addrtype --dst-type LOCAL ! --dst 127.0.0.0/8 -j DOCKER]
DEBU[2025-02-23T11:59:37.498127068+11:00] /usr/sbin/iptables, [–wait -t nat -D OUTPUT -m addrtype --dst-type LOCAL -j DOCKER]
DEBU[2025-02-23T11:59:37.505378643+11:00] /usr/sbin/iptables, [–wait -t nat -D PREROUTING]
DEBU[2025-02-23T11:59:37.507432231+11:00] /usr/sbin/iptables, [–wait -t nat -D OUTPUT]
DEBU[2025-02-23T11:59:37.510213901+11:00] /usr/sbin/iptables, [–wait -t nat -F DOCKER]
DEBU[2025-02-23T11:59:37.511999962+11:00] /usr/sbin/iptables, [–wait -t nat -X DOCKER]
DEBU[2025-02-23T11:59:37.514371158+11:00] daemon configured with a 15 seconds minimum shutdown timeout
DEBU[2025-02-23T11:59:37.514407223+11:00] start clean shutdown of all containers with a 15 seconds timeout…
INFO[2025-02-23T11:59:37.516273990+11:00] stopping event stream following graceful shutdown error=“” module=libcontainerd namespace=moby
DEBU[2025-02-23T11:59:37.516429898+11:00] Cleaning up old mountid : start.
DEBU[2025-02-23T11:59:37.517003544+11:00] Cleaning up old mountid : done.
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to register “bridge” driver: unable to add return rule in DOCKER-ISOLATION-STAGE-1 chain: (iptables failed: iptables --wait -A DOCKER-ISOLATION-STAGE-1 -j RETURN: iptables v1.8.7 (nf_tables): RULE_APPEND failed (No such file or directory): rule in chain DOCKER-ISOLATION-STAGE-1
(exit status 4))
-
First, stop the Docker daemon if it’s running:
sudo systemctl stop docker -
Reset the iptables rules:
sudo iptables -F
sudo iptables -X
3.Ensure you have the correct iptables backend. On newer systems, we need to switch from nftables back to legacy:
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
- Now try starting Docker again:
systemctl start docker
All Done docker must be working now again ;)