summaryrefslogtreecommitdiff
path: root/cmd/kpod
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2017-11-27 17:11:22 -0500
committerGitHub <noreply@github.com>2017-11-27 17:11:22 -0500
commit55167ef9828045f8f998286ffa76cad13c4c7da1 (patch)
tree3ff9100036e14cd07e1849baaf9da80e65b0c9bc /cmd/kpod
parent52ea0deee64c7466635452c62354604bdc7b48b4 (diff)
parent7c2a75335f59847a5ffa3252d0fd47bdee265e7d (diff)
downloadpodman-55167ef9828045f8f998286ffa76cad13c4c7da1.tar.gz
podman-55167ef9828045f8f998286ffa76cad13c4c7da1.tar.bz2
podman-55167ef9828045f8f998286ffa76cad13c4c7da1.zip
Merge pull request #79 from mheon/fix_create
Make 'kpod create' also create the container in runc
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 {