aboutsummaryrefslogtreecommitdiff
path: root/pkg/specgen/namespaces.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-04-29 12:13:05 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-04-29 12:13:05 +0200
commitb8db112436116fd7fdc8288a3d25eb82480cf752 (patch)
tree68ea93e010bcd9ef93295f2bebb2a416ed2460bd /pkg/specgen/namespaces.go
parent3e912f711b875b40709075e22be3f94e21e1639a (diff)
downloadpodman-b8db112436116fd7fdc8288a3d25eb82480cf752.tar.gz
podman-b8db112436116fd7fdc8288a3d25eb82480cf752.tar.bz2
podman-b8db112436116fd7fdc8288a3d25eb82480cf752.zip
specgen: honor slirp4netns
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/specgen/namespaces.go')
-rw-r--r--pkg/specgen/namespaces.go2
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":