Docker appears to needs cgroupsv1, which is now disabled on systemd by default.
As-is, the docker service then does not start with systemd, configuration detection with /usr/share/docker/contrib/check-config.sh also reports a failure. I personally saw no way to make docker use cgroupsv2. This seems to be exactly the same as Bug 691310 for libvirtd-lxc from which I took the summary description.
The same solution of requiring systemd[+cgroup-hybrid] works for me.
For some reason, even with +cgroup-hybrid, check-config.sh reports failure:
- cgroup hierarchy: nonexistent??
And dockerd doesn't start:
Aug 13 02:42:45 gentoo dockerd: failed to start daemon: Devices cgroup isn't mounted
Am I missing something?
Disregard the above, it was an issue with my /usr/src/linux folder. It's working with +cgroup-hybrid.
*** Bug 692040 has been marked as a duplicate of this bug. ***
It would be best if app-emulation/docker would gain a
*** Bug 700726 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s):
Author: Mikle Kolyada <firstname.lastname@example.org>
AuthorDate: 2020-01-16 19:36:09 +0000
Commit: Mikle Kolyada <email@example.com>
CommitDate: 2020-01-16 19:36:09 +0000
app-emulation/docker: force cgroupv1 on systemd
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Mikle Kolyada <firstname.lastname@example.org>
app-emulation/docker/docker-19.03.5.ebuild | 1 +
1 file changed, 1 insertion(+)
In order to switch to cgroup1 it is enough to print a message saying to pass systemd.unified_cgroup_hierarchy=0 via kernel command line.