summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-12-07 14:42:45 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-14 23:59:21 +0000
commitfcf52249b8f75b0f12d0e9c725efa3294739c772 (patch)
treefb40241a47da8c9f095a344a1c16765f542bd63d /cmd
parent22287fef01d1c67c84d4ae2c2544ec3e45ccfcfb (diff)
downloadpodman-fcf52249b8f75b0f12d0e9c725efa3294739c772.tar.gz
podman-fcf52249b8f75b0f12d0e9c725efa3294739c772.tar.bz2
podman-fcf52249b8f75b0f12d0e9c725efa3294739c772.zip
Wire networking into kpod create/run
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #109 Approved by: mheon
Diffstat (limited to 'cmd')
-rw-r--r--cmd/kpod/spec.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/kpod/spec.go b/cmd/kpod/spec.go
index 4e00f04ff..6929b571f 100644
--- a/cmd/kpod/spec.go
+++ b/cmd/kpod/spec.go
@@ -6,6 +6,7 @@ import (
"io/ioutil"
"strings"
+ "github.com/cri-o/ocicni/pkg/ocicni"
"github.com/docker/docker/daemon/caps"
"github.com/docker/docker/pkg/mount"
"github.com/docker/go-units"
@@ -529,6 +530,10 @@ func (c *createConfig) GetContainerCreateOptions() ([]libpod.CtrCreateOption, er
logrus.Debugf("appending name %s", c.Name)
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{}))
+ }
return options, nil
}