diff options
author | Danny Milosavljevic <dannym@scratchpost.org> | 2019-01-10 19:16:06 +0100 |
---|---|---|
committer | Danny Milosavljevic <dannym@scratchpost.org> | 2019-01-10 19:17:49 +0100 |
commit | 8b0c1744154f0e9a008c4e4586bfdb0876749139 (patch) | |
tree | 427ff38b0b5cee2e5b11f8711a7f63213c37860e /gnu | |
parent | d3a0e74d6a303cd46b0761b5a84c8e8b290e3797 (diff) | |
download | gnu-guix-8b0c1744154f0e9a008c4e4586bfdb0876749139.tar gnu-guix-8b0c1744154f0e9a008c4e4586bfdb0876749139.tar.gz |
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.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/services/docker.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/services/docker.scm b/gnu/services/docker.scm index 87931f83f5..c84c887612 100644 --- a/gnu/services/docker.scm +++ b/gnu/services/docker.scm @@ -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") |