From 89abd916948be1a52b50c7d1276e25ea67125981 Mon Sep 17 00:00:00 2001 From: Anusha Ragunathan Date: Thu, 24 Mar 2016 10:40:16 -0700 Subject: [PATCH] Dont cleanPath for systemd cgroup paths. systemd expects cgroupsPath to be of form "slice:prefix:name". So dont call cleanPath on it anymore. Signed-off-by: Anusha Ragunathan --- spec.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec.go b/spec.go index 411e0846..25498bf1 100644 --- a/spec.go +++ b/spec.go @@ -356,6 +356,9 @@ func createCgroupConfig(name string, useSystemdCgroup bool, spec *specs.Spec) (* if spec.Linux.CgroupsPath != nil { myCgroupPath = libcontainerUtils.CleanPath(*spec.Linux.CgroupsPath) + if useSystemdCgroup { + myCgroupPath = *spec.Linux.CgroupsPath + } } if useSystemdCgroup {