services: docker: Use more minimal service requrements.

* gnu/services/docker.scm (docker-service-type)[requirement]: Add
file-system-/sys/fs/cgroup/blkio, file-system-/sys/fs/cgroup/cpu,
file-system-/sys/fs/cgroup/cpuset, file-system-/sys/fs/cgroup/devices,
file-system-/sys/fs/cgroup/memory.  Remove elogind.
This commit is contained in:
Danny Milosavljevic 2019-01-10 19:16:06 +01:00
parent d3a0e74d6a
commit 8b0c174415
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 8 additions and 1 deletions

View File

@ -71,7 +71,14 @@
(documentation "Docker daemon.")
(provision '(dockerd))
;; Note: elogind is required because it's mounting the cgroups.
(requirement '(containerd elogind))
(requirement '(containerd
file-system-/sys/fs/cgroup/blkio
file-system-/sys/fs/cgroup/cpu
file-system-/sys/fs/cgroup/cpuset
file-system-/sys/fs/cgroup/devices
file-system-/sys/fs/cgroup/memory
; TODO: file-system-/sys/fs/cgroup/pids
))
(start #~(make-forkexec-constructor
(list (string-append #$docker "/bin/dockerd")
"-p" "/var/run/docker.pid")