summaryrefslogtreecommitdiff
path: root/libpod/runtime_pod_infra_linux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-08-05 14:26:04 +0200
committerGitHub <noreply@github.com>2019-08-05 14:26:04 +0200
commite2f38cdaa41ddc711cce40e00dab9c8457d2e830 (patch)
tree2658cb33c3be5554f8a8da5c3de0b658c41dbc10 /libpod/runtime_pod_infra_linux.go
parentb609de2e3dc60df4179d41a54e359a8722dbd3ff (diff)
parent80dcd4bebcdc8e280f6b43228561d09c194c328b (diff)
downloadpodman-e2f38cdaa41ddc711cce40e00dab9c8457d2e830.tar.gz
podman-e2f38cdaa41ddc711cce40e00dab9c8457d2e830.tar.bz2
podman-e2f38cdaa41ddc711cce40e00dab9c8457d2e830.zip
Merge pull request #3310 from gabibeyer/rootlessKata
rootless: Rearrange setup of rootless containers ***CIRRUS: TEST IMAGES***
Diffstat (limited to 'libpod/runtime_pod_infra_linux.go')
-rw-r--r--libpod/runtime_pod_infra_linux.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/runtime_pod_infra_linux.go b/libpod/runtime_pod_infra_linux.go
index da35b7f93..20b841296 100644
--- a/libpod/runtime_pod_infra_linux.go
+++ b/libpod/runtime_pod_infra_linux.go
@@ -95,7 +95,9 @@ func (r *Runtime) makeInfraContainer(ctx context.Context, p *Pod, imgName, imgID
if isRootless {
netmode = "slirp4netns"
}
- options = append(options, WithNetNS(p.config.InfraContainer.PortBindings, isRootless, netmode, networks))
+ // PostConfigureNetNS should not be set since user namespace sharing is not implemented
+ // and rootless networking no longer supports post configuration setup
+ options = append(options, WithNetNS(p.config.InfraContainer.PortBindings, false, netmode, networks))
return r.newContainer(ctx, g.Config, options...)
}