1

Podman gives a mechanism to expose ports with

--expose=port Expose a port, or a range of ports (e.g. --expose=3300-3310) to set up port redirection on the host system.

Is there a mechanism to set this option on a running container?

Evan Carroll
  • 28,578
  • 45
  • 164
  • 290

1 Answers1

2

It's not possible to edit the container networking settings during the runtime without stopping it and recreate it with the needed port to expose.

Here is the parameters you can update during the runtime.

Reda Salih
  • 1,724
  • 4
  • 9
  • Check this link https://docs.docker.com/engine/reference/commandline/container_update/ – Reda Salih Nov 15 '20 at 02:29
  • Also check my answer on your previous post : [link](https://unix.stackexchange.com/questions/619526/container-runs-systemd-whats-the-easiest-way-to-execute-a-script-that-uses-sys/619541?noredirect=1#comment1158783_619541) – Reda Salih Nov 15 '20 at 02:30