On 5/8/20 09:18, Navdeep Uniyal wrote:

Hi guys,


I am seeing a behavior:
When I run a container without root, I can reach the exposed ports from outside the host machine. But, when I run the same container using root access, I can't reach the port from outside.Is this an expected behavior. If yes, please help me how can I access the ports outside host while running using root access:
I am using following command:


podman run -dit -p=8000:8000 --privileged --name coa apache:latest

 

Kind Regards,

Navdeep


_______________________________________________
Podman mailing list -- podman@lists.podman.io
To unsubscribe send an email to podman-leave@lists.podman.io

I would expect them to behave the same, and in neither case be accessible from outside of the machine.

We believe that modifications of the firewall rules should be done by the admin and not be done by podman for external access to ports.