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-09-24 18:47:18 +0200
committerGitHub <noreply@github.com>2019-09-24 18:47:18 +0200
commitb300b981e7b101070198e8d8c9ef5c1c97f0c394 (patch)
tree60a654b26a40578d0e6bade2ec7bdf11d12457b3 /libpod/runtime_pod_infra_linux.go
parent079dc576de042089b18c097670dfd216c56060e6 (diff)
parent65d5a9823e0544141b356c77f56cd49cd599e0ba (diff)
downloadpodman-b300b981e7b101070198e8d8c9ef5c1c97f0c394.tar.gz
podman-b300b981e7b101070198e8d8c9ef5c1c97f0c394.tar.bz2
podman-b300b981e7b101070198e8d8c9ef5c1c97f0c394.zip
Merge pull request #3756 from gabibeyer/rootlessOrdering
rootless: Rearrange setup of rootless containers
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 ad6662f03..6a27c2800 100644
--- a/libpod/runtime_pod_infra_linux.go
+++ b/libpod/runtime_pod_infra_linux.go
@@ -99,7 +99,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...)
}