-
Notifications
You must be signed in to change notification settings - Fork 111
Wrong cgroup name on CentOS 7 #15
Comments
I ran into this and fixed it (for now) by only using the systemd cgroup, i.e. calling |
Sorry, this issue looks like upstream bug. I added some logging to
Available cgroups are:
|
This is a bug in this repo. It is not a kernel or Docker or systemd bug. The kernel makes no guarantee about the ordering of the name of the combined cgroups. But it does provide symlinks for each individual one. So this code should do what |
@cyphar Thanks for your comment! I was able to fix this bug in a fork of systemd-docker I'll publish to github when I have a minute. |
Environment:
Test service unit file
/etc/systemd/system/sd-test.service
:If you try to start it you'll have stopped (but not deleted) docker container. In
systemctl status sd-test
you can see something like this:This unit starts fine on:
Also
ls /sys/fs/cgroup
shows that there's nocpuacct,cpu
cgroup (on both centos, arch and coreos). Butcpu,cpuacct
is present and contains appropriate docker container scope.Test environment that I used can be bootstrapped by
The text was updated successfully, but these errors were encountered: