diff options
Diffstat (limited to 'pkg/spec/spec.go')
-rw-r--r-- | pkg/spec/spec.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go index ada84a87c..acc41f7c5 100644 --- a/pkg/spec/spec.go +++ b/pkg/spec/spec.go @@ -346,6 +346,9 @@ func addNetNS(config *CreateConfig, g *generate.Generator) error { } else if netMode.IsContainer() { logrus.Debug("Using container netmode") return nil + } else if IsNS(string(netMode)) { + logrus.Debug("Using ns netmode") + return g.AddOrReplaceLinuxNamespace(spec.NetworkNamespace, NS(string(netMode))) } else if netMode.IsUserDefined() { logrus.Debug("Using user defined netmode") return nil |