From e40512cbaa16386bc221c06f1a2c9e57c109f82e Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 11 Dec 2017 14:28:55 -0500 Subject: Temporarily unconditionally configure network namespaces Signed-off-by: Matthew Heon Closes: #109 Approved by: mheon --- cmd/kpod/spec.go | 5 ++--- 1 file 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 } -- cgit v1.2.3-54-g00ecf