summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-08 15:28:30 -0500
committerGitHub <noreply@github.com>2020-12-08 15:28:30 -0500
commit7b2e81ec268464427e4d1365cbdd9e0bc9c582f5 (patch)
tree6413bcb1c39080f7db62772a26ccbcffe4e5c5ca /cmd
parent47d2a4be2af5143c9619a65ec641daa1025130a3 (diff)
parentaf74d01d33867ff0e6c9c3a169f33e312cc5289e (diff)
downloadpodman-7b2e81ec268464427e4d1365cbdd9e0bc9c582f5.tar.gz
podman-7b2e81ec268464427e4d1365cbdd9e0bc9c582f5.tar.bz2
podman-7b2e81ec268464427e4d1365cbdd9e0bc9c582f5.zip
Merge pull request #8638 from kwiesmueller/fix-container-network-mode
Pass full NetworkMode to ParseNetworkNamespace
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/common/create_opts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/create_opts.go b/cmd/podman/common/create_opts.go
index 4b0e40df2..e975def0a 100644
--- a/cmd/podman/common/create_opts.go
+++ b/cmd/podman/common/create_opts.go
@@ -237,7 +237,7 @@ func ContainerCreateToContainerCLIOpts(cc handlers.CreateContainerConfig, cgroup
}
// netMode
- nsmode, _, err := specgen.ParseNetworkNamespace(cc.HostConfig.NetworkMode.NetworkName())
+ nsmode, _, err := specgen.ParseNetworkNamespace(string(cc.HostConfig.NetworkMode))
if err != nil {
return nil, nil, err
}