services: docker: Fix missing containerd-shim binary.
This commit fixes error 'time="2020-10-16T…" level=error msg="Handler for POST /v1.40/containers/…/start returned error: failed to start shim: exec: \"containerd-shim\": executable file not found in $PATH: unknown"'. * gnu/services/docker.scm (containerd-shepherd-service): Add "containerd-shim" to PATH.master
parent
6c03d15d7d
commit
6a5a477df4
|
@ -84,7 +84,8 @@ loop-back communications.")
|
||||||
|
|
||||||
(define (containerd-shepherd-service config)
|
(define (containerd-shepherd-service config)
|
||||||
(let* ((package (docker-configuration-containerd config))
|
(let* ((package (docker-configuration-containerd config))
|
||||||
(debug? (docker-configuration-debug? config)))
|
(debug? (docker-configuration-debug? config))
|
||||||
|
(containerd (docker-configuration-containerd config)))
|
||||||
(shepherd-service
|
(shepherd-service
|
||||||
(documentation "containerd daemon.")
|
(documentation "containerd daemon.")
|
||||||
(provision '(containerd))
|
(provision '(containerd))
|
||||||
|
@ -93,6 +94,9 @@ loop-back communications.")
|
||||||
#$@(if debug?
|
#$@(if debug?
|
||||||
'("--log-level=debug")
|
'("--log-level=debug")
|
||||||
'()))
|
'()))
|
||||||
|
;; For finding containerd-shim binary.
|
||||||
|
#:environment-variables
|
||||||
|
(list (string-append "PATH=" #$containerd "/bin"))
|
||||||
#:log-file "/var/log/containerd.log"))
|
#:log-file "/var/log/containerd.log"))
|
||||||
(stop #~(make-kill-destructor)))))
|
(stop #~(make-kill-destructor)))))
|
||||||
|
|
||||||
|
|
Reference in New Issue