summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-12-11 14:28:55 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-14 23:59:21 +0000
commite40512cbaa16386bc221c06f1a2c9e57c109f82e (patch)
tree0dc01f7341edd7f47f2d02e5a2aae566fecc18bb
parent08762dcd61566cc77281244ed52ecc87e2737f30 (diff)
downloadpodman-e40512cbaa16386bc221c06f1a2c9e57c109f82e.tar.gz
podman-e40512cbaa16386bc221c06f1a2c9e57c109f82e.tar.bz2
podman-e40512cbaa16386bc221c06f1a2c9e57c109f82e.zip
Temporarily unconditionally configure network namespaces
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #109 Approved by: mheon
-rw-r--r--cmd/kpod/spec.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/kpod/spec.go b/cmd/kpod/spec.go
index 6929b571f..29ed8d40f 100644
--- a/cmd/kpod/spec.go
+++ b/cmd/kpod/spec.go
@@ -531,9 +531,8 @@ func (c *createConfig) GetContainerCreateOptions() ([]libpod.CtrCreateOption, er
options = append(options, libpod.WithName(c.Name))
}
// TODO parse ports into libpod format and include
- if c.netMode.IsDefault() {
- options = append(options, libpod.WithNetNS([]ocicni.PortMapping{}))
- }
+ // TODO should not happen if --net=host
+ options = append(options, libpod.WithNetNS([]ocicni.PortMapping{}))
return options, nil
}