diff --git a/spec.go b/spec.go index 411e0846e..25498bf1f 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 {