;;; Copyright © 2018 Danny Milosavljevic <dannym@scratchpost.org>
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2020 Jesse Dowell <jessedowell@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
(docker
(package docker)
"Docker daemon package.")
+ (docker-cli
+ (package docker-cli)
+ "Docker client package.")
(containerd
(package containerd)
"containerd package.")
(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))
#$@(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)))))
#$@(if debug?
'("--debug" "--log-level=debug")
'())
- (if #$enable-proxy? "--userland-proxy" "")
- "--userland-proxy-path" (string-append #$proxy
- "/bin/proxy")
+ #$@(if enable-proxy?
+ (list "--userland-proxy=true"
+ #~(string-append
+ "--userland-proxy-path=" #$proxy "/bin/proxy"))
+ '("--userland-proxy=false"))
(if #$enable-iptables?
"--iptables"
"--iptables=false"))
bundles in Docker containers.")
(extensions
(list
+ ;; Make sure the 'docker' command is available.
+ (service-extension profile-service-type
+ (compose list docker-configuration-docker-cli))
(service-extension activation-service-type
%docker-activation)
(service-extension shepherd-root-service-type