Most of the attributes that make up the Pod are actually assigned to the "infra" container.
Port bindings, cgroup-parent values, and kernel namespaces are all assigned to the “infra” container.
This is critical to understand, because once the pod is created these attributes are assigned to the
"infra" container and cannot be changed. For example, if you create a pod and then later decide you
want to add a container that binds new ports, Podman will not be able to do this. You would need
to recreate the pod with the additional port bindings before adding the new container.
Feature request description
There does not seem to be any way to change published ports after starting a container.
See also:
https://stackoverflow.com/questions/63641299/podman-pod-change-port-mapping
https://stackoverflow.com/questions/59920413/podman-add-ports-to-expose-to-running-pod
which cites https://developers.redhat.com/blog/2019/01/15/podman-managing-containers-pods#
I'm new and only now learning containers/podman, so I don't understand any nuances that may make this a deliberate design decision.
Is this a deliberate design decision or just not implemented yet?
I would also like this for network settings in general.
Suggest potential solution
I would like a podman subcommand for modifying port / network settings.
Have you considered any alternatives?
No response
Additional context
No response