You are not logged in.
Pages: 1
Hello,
i am trying to run a docker container with the following command:
sudo docker run --name some-nginx -d -p 8080:80 -e MY_NAME="http://localhost:8080" some-content-nginxbut i get the following error
74b5ba00dd6660eb58cf9118686f48e6c48b7548d95845d789ea3df9e6da4072
docker: Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint some-nginx (9a300cfebf7b29511e8e662b42511d0113a15362c0ee7d9f7449d218d7de9fae): Unable to enable DNAT rule: (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8080 -j DNAT --to-destination 172.17.0.2:80 ! -i docker0: Warning: Extension tcp revision 0 not supported, missing kernel module?
Warning: Extension DNAT revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
(exit status 1))
Run 'docker run --help' for more informationIf i ommit the port forwarding option
-p 8080:80it seems like docker starts the container.
Offline
a process is probably already using port 8080 on your host, im guessing another docker container, you can check by:
sudo ss -tulpn 'sport = :8080'you can simply change 8080:80 to 8081:80 and that should work
EDIT: and if its not that its probably a kernel mismatch, check:
pacman -Qi linux |grep Version && uname -rLast edited by jonno2002 (2025-11-22 21:56:44)
Offline
Pages: 1