diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-29 12:13:05 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-29 12:13:05 +0200 |
commit | b8db112436116fd7fdc8288a3d25eb82480cf752 (patch) | |
tree | 68ea93e010bcd9ef93295f2bebb2a416ed2460bd | |
parent | 3e912f711b875b40709075e22be3f94e21e1639a (diff) | |
download | podman-b8db112436116fd7fdc8288a3d25eb82480cf752.tar.gz podman-b8db112436116fd7fdc8288a3d25eb82480cf752.tar.bz2 podman-b8db112436116fd7fdc8288a3d25eb82480cf752.zip |
specgen: honor slirp4netns
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r-- | pkg/specgen/namespaces.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/specgen/namespaces.go b/pkg/specgen/namespaces.go index f0161a793..396563267 100644 --- a/pkg/specgen/namespaces.go +++ b/pkg/specgen/namespaces.go @@ -216,6 +216,8 @@ func ParseNetworkNamespace(ns string) (Namespace, []string, error) { toReturn := Namespace{} var cniNetworks []string switch { + case ns == "slirp4netns": + toReturn.NSMode = Slirp case ns == "pod": toReturn.NSMode = FromPod case ns == "bridge": |