Docker fail to start jetson nano after clean install of jetpack 6.2 (fix it)

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))

  1. First, stop the Docker daemon if it’s running:
    sudo systemctl stop docker

  2. 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

  1. Now try starting Docker again:
    systemctl start docker

All Done docker must be working now again ;)

1 Like

For those that didn’t have this solution work (I tried this over the weekend, didn’t have any luck), the other potential solution is:

sudo apt install docker-ce=5:27.5.1-1~ubuntu.22.04~jammy \
                 docker-ce-cli=5:27.5.1-1~ubuntu.22.04~jammy \
                 docker-compose-plugin=2.32.4-1~ubuntu.22.04~jammy \
                 docker-buildx-plugin=0.20.0-1~ubuntu.22.04~jammy \
                 docker-ce-rootless-extras=5:27.5.1-1~ubuntu.22.04~jammy

Some are saying that you only need to downgrade the following:

sudo apt install docker-ce=5:27.5.1-1~ubuntu.22.04~jammy \
                 docker-ce-cli=5:27.5.1-1~ubuntu.22.04~jammy

and then mark them, so you don’t upgrade them:


sudo apt-mark hold docker-ce=5:27.5.1-1~ubuntu.22.04~jammy
sudo apt-mark hold docker-ce-cli=5:27.5.1-1~ubuntu.22.04~jammy
3 Likes

Thank you! This solution works for docker issue with JetPack 6.2

Thanks hex4def6! Fixed the docker problem I was stuck with for my jetson orin nano w JetPack 6.2.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.