Add error message

* Updated cgroups-v2 documentation to mention dbus-user-session requirement
* Added friendlier error message

Signed-off-by: Aos Dabbagh <aosdab@gmail.com>
This commit is contained in:
Aos Dabbagh
2020-10-02 22:17:38 -04:00
parent 0d9b0dfc46
commit b448330514
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -24,6 +24,13 @@ On cgroup v2 hosts, it is highly recommended to run runc with the systemd cgroup
The recommended systemd version is 244 or later. Older systemd does not support delegation of `cpuset` controller.
Make sure you also have the `dbus-user-session` (Debian/Ubuntu) or `dbus-daemon` (CentOS/Fedora) package installed, and that `dbus` is running. On Debian-flavored distros, this can be accomplished like so:
```console
$ sudo apt install -y dbus-user-session
$ systemctl --user start dbus
```
## Rootless
On cgroup v2 hosts, rootless runc can talk to systemd to get cgroup permissions to be delegated.