On 8/30/21 14:34, Jorge Fábregas wrote:
Newbie question... I'm playing out with rootless container based on:
If I run this image (without specifying ports or volumes) it will create
a volume automatically. I did "inspect" the image and I see the volume
is defined there. I also noticed the ExposedPorts as well but podman
didn't create theses. Why would it create the volume but not expose the
ports (if they're available and above 1024)?
Podman mailing list -- podman(a)lists.podman.io
To unsubscribe send an email to podman-leave(a)lists.podman.io
You need to run podman run --publish-all (-P) in order to publish ports
defined within a container image.
Since these ports are potentially exposed to the internet, this does not
happen automatically. BTW You will still need to open the firewall
rules, to allow access to the ports from external sites.