Docker start problem on Ubuntu 23.04·

mrpython@MP-ThinkPad:~$ docker run -d -p 80:80 --name oj-dev ubuntu:20.04
8237cc317262a05af951bd80f3221db9288ff1793e2f4c32e83e04450b584867
docker: Error response from daemon: driver failed programming external connectivity on endpoint oj-dev (1514b16d939330f5eaaaa894c4ef2ef9396e1c0e0754781c935d1b6bb5f0c437):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 80 -j DNAT --to-destination 172.17.0.2:80 ! -i docker0: iptables v1.8.7 (nf_tables): unknown option "--to-destination"
Try `iptables -h' or 'iptables --help' for more information.
 (exit status 2)).
mrpython@MP-ThinkPad:~$ docker start oj-dev
Error response from daemon: driver failed programming external connectivity on endpoint oj-dev (d7e7d7038435553a8950b641353c1c47fbc1956421f209ad6ed804c4b2858ca3):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 80 -j DNAT --to-destination 172.17.0.2:80 ! -i docker0: iptables v1.8.7 (nf_tables): unknown option "--to-destination"
Try `iptables -h' or 'iptables --help' for more information.
 (exit status 2))
Error: failed to start containers: oj-dev
mrpython@MP-ThinkPad:~$ uname -a
Linux MP-ThinkPad 6.2.0-26-generic #26-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 10 23:39:54 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
mrpython@MP-ThinkPad:~$ iptables --version
iptables v1.8.7 (nf_tables)
1 Like

Seems like an issue with iptables or nftables firewall. Usually Docker works on fresh installs. Not sure how you have configured and customized your system.