diff options
author | Kevin Wiesmueller <kwiesmul@redhat.com> | 2020-12-07 20:59:54 +0100 |
---|---|---|
committer | Kevin Wiesmueller <kwiesmul@redhat.com> | 2020-12-07 22:22:42 +0100 |
commit | af74d01d33867ff0e6c9c3a169f33e312cc5289e (patch) | |
tree | a5b91a08d5765f8ba2028ae2a907b8be26b613c2 | |
parent | ef6748dc87126765cc97b6901d0f5adf297914d4 (diff) | |
download | podman-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>
-rw-r--r-- | cmd/podman/common/create_opts.go | 2 |
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 } |