aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/common
diff options
context:
space:
mode:
authorKevin Wiesmueller <kwiesmul@redhat.com>2020-12-07 20:59:54 +0100
committerKevin Wiesmueller <kwiesmul@redhat.com>2020-12-07 22:22:42 +0100
commitaf74d01d33867ff0e6c9c3a169f33e312cc5289e (patch)
treea5b91a08d5765f8ba2028ae2a907b8be26b613c2 /cmd/podman/common
parentef6748dc87126765cc97b6901d0f5adf297914d4 (diff)
downloadpodman-af74d01d33867ff0e6c9c3a169f33e312cc5289e.tar.gz
podman-af74d01d33867ff0e6c9c3a169f33e312cc5289e.tar.bz2
podman-af74d01d33867ff0e6c9c3a169f33e312cc5289e.zip
pass full NetworkMode to ParseNetworkNamespace
This should create the correct namespace for NetworkModes like container:containerid Signed-off-by: Kevin Wiesmueller <kwiesmul@redhat.com>
Diffstat (limited to 'cmd/podman/common')
-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
}