From b07c8d6a734577318a4f147be8acd35a6deb54ae Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Fri, 9 Feb 2018 11:56:39 -0500 Subject: Fix libpod to use given CGroup parent instead of a hardcoded one Signed-off-by: Matthew Heon Closes: #319 Approved by: TomSweeneyRedHat --- libpod/container_api.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libpod/container_api.go b/libpod/container_api.go index 72df60eb8..6fdc45589 100644 --- a/libpod/container_api.go +++ b/libpod/container_api.go @@ -285,8 +285,7 @@ func (c *Container) Init() (err error) { c.state.ConfigPath = jsonPath // With the spec complete, do an OCI create - // TODO set cgroup parent in a sane fashion - if err := c.runtime.ociRuntime.createContainer(c, CgroupParent); err != nil { + if err := c.runtime.ociRuntime.createContainer(c, c.config.CgroupParent); err != nil { return err } -- cgit v1.2.3-54-g00ecf