Giuseppe Scrivano wrote on 29.10.2019 13:54 (GMT +01:00):
An unprivileged user cannot use port < 1024.
We document the differences between rootless and root containers here:
https://github.com/containers/libpod/blob/master/rootless.md
To solve the issue you have reported, you can either try to use a port
bigger than 1023; or as root, tweak the value in
/proc/sys/net/ipv4/ip_unprivileged_port_start.
Giuseppe
I can replicate this on CentOS 8. I guess in this specific case it has to do with the
version of podman available for CentOS.
See:
$ podman run -d -p 8080:8080 nginx:latest
port bindings are not yet supported by rootless containers
In the case of Fedora it actually has to do with the privileged ports, I guess.
--
Giuseppe Sforza