Add cgroup name to error message
More information should help troubleshoot an issue when this error occurs. Signed-off-by: Filipe Brandenburger <filbranden@google.com>
This commit is contained in:
parent
2b18fe1d88
commit
4b2b978291
|
@ -325,7 +325,7 @@ func createCgroupConfig(opts *CreateOpts) (*configs.Cgroup, error) {
|
||||||
// for e.g. "system.slice:docker:1234"
|
// for e.g. "system.slice:docker:1234"
|
||||||
parts := strings.Split(myCgroupPath, ":")
|
parts := strings.Split(myCgroupPath, ":")
|
||||||
if len(parts) != 3 {
|
if len(parts) != 3 {
|
||||||
return nil, fmt.Errorf("expected cgroupsPath to be of format \"slice:prefix:name\" for systemd cgroups")
|
return nil, fmt.Errorf("expected cgroupsPath to be of format \"slice:prefix:name\" for systemd cgroups, got %q instead", myCgroupPath)
|
||||||
}
|
}
|
||||||
c.Parent = parts[0]
|
c.Parent = parts[0]
|
||||||
c.ScopePrefix = parts[1]
|
c.ScopePrefix = parts[1]
|
||||||
|
|
Loading…
Reference in New Issue