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

15.04 vivid / systemd changes cgroup pathing #1

@csherwood

Description

@csherwood

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" -- \

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions