aboutsummaryrefslogtreecommitdiff
path: root/tw/services/docker.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tw/services/docker.scm')
-rw-r--r--tw/services/docker.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/tw/services/docker.scm b/tw/services/docker.scm
index 02ba25e4..8361991f 100644
--- a/tw/services/docker.scm
+++ b/tw/services/docker.scm
@@ -12,6 +12,9 @@
#:export (docker-container-service-type
docker-container-configuration))
+;; TODO: Guix has `oci-container-service-type', but it doesn't support
+;; environment files, so may not be safe for secrets.
+
(define-maybe/no-serialization string)
(define docker-volume?
@@ -97,7 +100,7 @@ executable to use."))
(shepherd-service
(provision (list (string->symbol
(string-append "docker-container-" (maybe-value name image)))))
- (requirement (if (string=? network-type "none") '() '(networking)))
+ (requirement `(dockerd ,@(if (string=? network-type "none") '() '(networking))))
(documentation (format #f "Run a Docker container called ~s from the image ~s."
(maybe-value name) image))
(start #~(lambda ()