summaryrefslogtreecommitdiff
path: root/libpod/container.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-01-10 16:21:54 -0500
committerMatthew Heon <matthew.heon@gmail.com>2018-01-10 16:21:54 -0500
commit04e0687da14070ea3ff208687d4f749d5dc319a0 (patch)
tree1611f45b3b996e204af0409d4d29e2e749a1b267 /libpod/container.go
parente6be800ec633342aef656e0a2ed0bdc4519796d9 (diff)
downloadpodman-04e0687da14070ea3ff208687d4f749d5dc319a0.tar.gz
podman-04e0687da14070ea3ff208687d4f749d5dc319a0.tar.bz2
podman-04e0687da14070ea3ff208687d4f749d5dc319a0.zip
Add ability to set CGroup Parent via API
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/container.go')
-rw-r--r--libpod/container.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/container.go b/libpod/container.go
index 79fd5d42c..fbc01be0a 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -83,7 +83,6 @@ type Container struct {
// TODO Add readonly support
// TODO add SHM size support
// TODO add shared namespace support
-// TODO add cgroup parent support
// containerRuntimeInfo contains the current state of the container
// It is stored on disk in a tmpfs and recreated on reboot
@@ -1228,7 +1227,7 @@ func (c *Container) cleanupStorage() error {
// CGroupPath returns a cgroups "path" for a given container.
func (c *Container) CGroupPath() cgroups.Path {
- return cgroups.StaticPath(filepath.Join(CgroupParent, fmt.Sprintf("libpod-conmon-%s", c.ID())))
+ return cgroups.StaticPath(filepath.Join(c.config.CgroupParent, fmt.Sprintf("libpod-conmon-%s", c.ID())))
}
// copyHostFileToRundir copies the provided file to the runtimedir