summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/run.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/podman/run.go b/cmd/podman/run.go
index 169fe6645..ca66aadf2 100644
--- a/cmd/podman/run.go
+++ b/cmd/podman/run.go
@@ -72,12 +72,17 @@ func runCmd(c *cli.Context) error {
options = append(options, libpod.WithUser(createConfig.User))
options = append(options, libpod.WithShmDir(createConfig.ShmDir))
options = append(options, libpod.WithShmSize(createConfig.Resources.ShmSize))
+ options = append(options, libpod.WithCgroupParent(createConfig.CgroupParent))
ctr, err := runtime.NewContainer(runtimeSpec, options...)
if err != nil {
return err
}
logrus.Debug("new container created ", ctr.ID())
+
+ p, _ := ctr.CGroupPath()("")
+ logrus.Debugf("createConfig.CgroupParent %v for %v", p, ctr.ID())
+
if err := ctr.Init(); err != nil {
// This means the command did not exist
exitCode = 127