summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}