Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

15.04 vivid / systemd changes cgroup pathing #1

Open
csherwood opened this issue May 13, 2015 · 0 comments
Open

15.04 vivid / systemd changes cgroup pathing #1

csherwood opened this issue May 13, 2015 · 0 comments

Comments

@csherwood
Copy link

testing out vivid which comes with systemd by default. the cgroup pathing is changed, which slightly breaks this great utility.

hacked together a quick fix, thought you might be interested:

supported_cgroups()

-lscgroup | awk -F: "/$ID/ {print $1}" | paste -sd,
+lscgroup | awk -F: "/$ID/ {print $1}" | uniq | paste -sd,

inside()

-cgexec -g "$(supported_cgroups "$ID"):docker/$ID" --
+cgexec -g "$(supported_cgroups "$ID"):/system.slice/docker-$ID.scope" -- \

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant