aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-29 04:26:30 -0700
committerGitHub <noreply@github.com>2019-03-29 04:26:30 -0700
commit6ab27c6355a4df228ed6d527162d5251d867b9b3 (patch)
tree98aff18fca2369cd87219aef0d18db872a67047d /libpod
parentfdf979a7917a497322b23354778bd32bbd9b05f5 (diff)
parente25924f31c8e9e53490f02073ba69d41e3470712 (diff)
downloadpodman-6ab27c6355a4df228ed6d527162d5251d867b9b3.tar.gz
podman-6ab27c6355a4df228ed6d527162d5251d867b9b3.tar.bz2
podman-6ab27c6355a4df228ed6d527162d5251d867b9b3.zip
Merge pull request #2796 from mheon/fix_cni_multinetwork
Ensure that we make a netns for CNI non-default nets
Diffstat (limited to 'libpod')
-rw-r--r--libpod/options.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/options.go b/libpod/options.go
index e1ffd6ea5..84c541314 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -930,7 +930,7 @@ func WithNetNS(portMappings []ocicni.PortMapping, postConfigureNetNS bool, netmo
ctr.config.PostConfigureNetNS = postConfigureNetNS
ctr.config.NetMode = namespaces.NetworkMode(netmode)
- ctr.config.CreateNetNS = !ctr.config.NetMode.IsUserDefined()
+ ctr.config.CreateNetNS = true
ctr.config.PortMappings = portMappings
ctr.config.Networks = networks