summaryrefslogtreecommitdiff
path: root/cmd/kpod
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-11-27 12:03:59 -0500
committerMatthew Heon <matthew.heon@gmail.com>2017-11-27 14:16:19 -0500
commitfbbf416233fd619c45dd3fa4f1723f335cc4a618 (patch)
tree7832085aa3aa39545bcab4c51ce0aa72e03c8d51 /cmd/kpod
parent61e0ab4f47b63039152a5576a2f9a1741d45b654 (diff)
downloadpodman-fbbf416233fd619c45dd3fa4f1723f335cc4a618.tar.gz
podman-fbbf416233fd619c45dd3fa4f1723f335cc4a618.tar.bz2
podman-fbbf416233fd619c45dd3fa4f1723f335cc4a618.zip
Make 'kpod create' also create the container in runc
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'cmd/kpod')
-rw-r--r--cmd/kpod/create.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/kpod/create.go b/cmd/kpod/create.go
index 30837e7df..2812874fa 100644
--- a/cmd/kpod/create.go
+++ b/cmd/kpod/create.go
@@ -11,6 +11,7 @@ import (
"github.com/opencontainers/selinux/go-selinux/label"
"github.com/pkg/errors"
"github.com/projectatomic/libpod/libpod"
+ "github.com/sirupsen/logrus"
"github.com/urfave/cli"
pb "k8s.io/kubernetes/pkg/kubelet/apis/cri/v1alpha1/runtime"
)
@@ -206,6 +207,12 @@ func createCmd(c *cli.Context) error {
return err
}
+ logrus.Debug("new container created ", ctr.ID())
+ if err := ctr.Init(); err != nil {
+ return err
+ }
+ logrus.Debug("container storage created for %q", ctr.ID())
+
if c.String("cidfile") != "" {
libpod.WriteFile(ctr.ID(), c.String("cidfile"))
} else {