aboutsummaryrefslogtreecommitdiff
path: root/pkg/spec
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-07-23 11:44:31 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-24 21:50:49 +0000
commit6f65490e274e5cde5f5cb616719ea27932a764ee (patch)
tree21156a30f7f7105ab3cbef8550f55a9586d40c60 /pkg/spec
parent6715bffaf6a858df9539d6e48e2c1b634364f83e (diff)
downloadpodman-6f65490e274e5cde5f5cb616719ea27932a764ee.tar.gz
podman-6f65490e274e5cde5f5cb616719ea27932a764ee.tar.bz2
podman-6f65490e274e5cde5f5cb616719ea27932a764ee.zip
spec: allow container:NAME network mode
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #1145 Approved by: rhatdan
Diffstat (limited to 'pkg/spec')
-rw-r--r--pkg/spec/spec.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go
index 35651f2ed..ada84a87c 100644
--- a/pkg/spec/spec.go
+++ b/pkg/spec/spec.go
@@ -345,6 +345,7 @@ func addNetNS(config *CreateConfig, g *generate.Generator) error {
return nil
} else if netMode.IsContainer() {
logrus.Debug("Using container netmode")
+ return nil
} else if netMode.IsUserDefined() {
logrus.Debug("Using user defined netmode")
return nil