diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-09-13 15:52:49 +0200 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-09-16 09:42:14 -0400 |
commit | b6789c3d5f763b2b7ff9a795e1a046de745bd3eb (patch) | |
tree | b8d13f20a155daf856ac734a9a6610a2c731e9aa /libpod/networking_linux.go | |
parent | ffc8e57d3bb55e3df460c9df41a95993cf5dd2cf (diff) | |
download | podman-b6789c3d5f763b2b7ff9a795e1a046de745bd3eb.tar.gz podman-b6789c3d5f763b2b7ff9a795e1a046de745bd3eb.tar.bz2 podman-b6789c3d5f763b2b7ff9a795e1a046de745bd3eb.zip |
fix restart always with rootlessport
When a container is automatically restarted due its restart policy and
the container uses rootless cni networking with ports forwarded we have
to start a new rootlessport process since it exits with conmon.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/networking_linux.go')
-rw-r--r-- | libpod/networking_linux.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/networking_linux.go b/libpod/networking_linux.go index 9aa6cab15..b0d4e0b2d 100644 --- a/libpod/networking_linux.go +++ b/libpod/networking_linux.go @@ -718,6 +718,7 @@ func (r *Runtime) setupRootlessNetNS(ctr *Container) error { // set up port forwarder for CNI-in-slirp4netns netnsPath := ctr.state.NetNS.Path() // TODO: support slirp4netns port forwarder as well + // make sure to fix this container.handleRestartPolicy() as well return r.setupRootlessPortMappingViaRLK(ctr, netnsPath) } return nil |