Issues getting nginx to run in a container on fedora coreos

On a pretty fresh fedora coreOS install

Podman can start nginx, I can access it via curl on the host OS but I can not access it via my desktop on the same network
podman run -p 8080:80 nginx

curl: (7) Failed to connect to port 8080: No route to host

Using docker the container will not even start

$ docker run -p 8080:80 nginx
docker: Error response from daemon: driver failed programming external connectivity on endpoint sleepy_ritchie (1c1fdd8f939d199fe985415cf41453782d3442fef9d7a44b90beae1667557eb3):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8080 -j DNAT --to-destination ! -i docker0: iptables: No chain/target/match by that name.
 (exit status 1)).
ERRO[0000] error waiting for container: context canceled 

Is there an extra step I am missing here? I’m guessing its a firewall issue but I’m not entirely sure what should be changed.

Solved this with port - Running docker container : iptables: No chain/target/match by that name - Stack Overflow

1 Like

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