After freshly flashing my AGX Orin with JetPack 6.0, I am not longer able to expose ports out of a docker container.
I run a simple command:
docker run --rm -ti -p 3306:3306/tcp ubuntu:22.04
I get the following error:
root@tegra-ubuntu:~# docker run --rm -ti -p 3306:3306/tcp ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
docker: Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint crazy_hofstadter (0fc8e978816dc825b3d120841be8f02a2c09e0379e26aff511fa71618aa7a395): Unable to enable DIRECT ACCESS FILTERING - DROP rule: (iptables failed: iptables --wait -t raw -A PREROUTING -p tcp -d 172.17.0.2 --dport 3306 ! -i docker0 -j DROP: iptables v1.8.7 (legacy): can't initialize iptables table `raw': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
(exit status 3))
Run 'docker run --help' for more information
root@tegra-ubuntu:~#