guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: services: docker: Fix missing containerd-shim bin


From: guix-commits
Subject: branch master updated: services: docker: Fix missing containerd-shim binary.
Date: Fri, 16 Oct 2020 17:44:03 -0400

This is an automated email from the git hooks/post-receive script.

wigust pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 6a5a477  services: docker: Fix missing containerd-shim binary.
6a5a477 is described below

commit 6a5a477df46a0329cc867c4780b59cdf4340d034
Author: Oleg Pykhalov <go.wigust@gmail.com>
AuthorDate: Sat Oct 17 00:40:45 2020 +0300

    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.
---
 gnu/services/docker.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/services/docker.scm b/gnu/services/docker.scm
index e230142..7acfbea 100644
--- a/gnu/services/docker.scm
+++ b/gnu/services/docker.scm
@@ -84,7 +84,8 @@ loop-back communications.")
 
 (define (containerd-shepherd-service config)
   (let* ((package (docker-configuration-containerd config))
-         (debug? (docker-configuration-debug? config)))
+         (debug? (docker-configuration-debug? config))
+         (containerd (docker-configuration-containerd config)))
     (shepherd-service
            (documentation "containerd daemon.")
            (provision '(containerd))
@@ -93,6 +94,9 @@ loop-back communications.")
                            #$@(if debug?
                                   '("--log-level=debug")
                                   '()))
+                     ;; For finding containerd-shim binary.
+                     #:environment-variables
+                     (list (string-append "PATH=" #$containerd "/bin"))
                      #:log-file "/var/log/containerd.log"))
            (stop #~(make-kill-destructor)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]