From af74d01d33867ff0e6c9c3a169f33e312cc5289e Mon Sep 17 00:00:00 2001 From: Kevin Wiesmueller Date: Mon, 7 Dec 2020 20:59:54 +0100 Subject: pass full NetworkMode to ParseNetworkNamespace This should create the correct namespace for NetworkModes like container:containerid Signed-off-by: Kevin Wiesmueller --- cmd/podman/common/create_opts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') 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 } -- cgit v1.2.3-54-g00ecf