I don't think I have enough information to give you a definitive answer,
especially because you don't provide the commands for creating/running the
containers. If you do so, maybe we can give better answers. That said, I
don't tend to think of containers exposing ports inside the pod; I
prefer to just think that the pod exposes the ports. And remember to
configure the ports on the creation of the pod for all your needs.
On Sat, Oct 26, 2024 at 3:23 AM openbidaaz via Podman <
podman(a)lists.podman.io> wrote:
Hello,
I have setup 3 rootless containers in a pod and now want to expose ports
on two containers to the outside world.
I have tried:
podman pod create \
--name "${ABCPOD}" \
--label "${ABCPOD}" \
--network slirp4netns:port_handler=slirp4netns \
--publish 8080:8080
but now the container exposing port 8080 is failing to get created.
How do I create rootless pods and then expose the networking?
Thank you in advance.
Regards
S
Sent with Proton Mail <
https://proton.me/mail/home> secure email.
_______________________________________________
Podman mailing list -- podman(a)lists.podman.io
To unsubscribe send an email to podman-leave(a)lists.podman.io
--
Brent Baude
Container Runtimes, Podman Architect
https://github.com/containers/podman