Major fixes to systemd cgroup handling

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #507
Approved by: baude
This commit is contained in:
Matthew Heon
2018-03-21 11:28:16 -04:00
committed by Atomic Bot
parent fee9ec1858
commit df83d361e4
6 changed files with 51 additions and 24 deletions

View File

@@ -123,11 +123,13 @@ func runCmd(c *cli.Context) error {
return err
}
if logrus.GetLevel() == logrus.DebugLevel {
logrus.Debugf("New container created %q", ctr.ID())
logrus.Debugf("New container created %q", ctr.ID())
p, _ := ctr.CGroupPath()("")
logrus.Debugf("container %q has CgroupParent %q", ctr.ID(), p)
if logrus.GetLevel() == logrus.DebugLevel {
cgroupPath, err := ctr.CGroupPath()
if err == nil {
logrus.Debugf("container %q has CgroupParent %q", ctr.ID(), cgroupPath)
}
}
createConfigJSON, err := json.Marshal(createConfig)