aboutsummaryrefslogtreecommitdiff
path: root/tw/services/docker.scm
diff options
context:
space:
mode:
authorTimo Wilken2024-02-25 23:41:47 +0100
committerTimo Wilken2024-02-25 23:41:47 +0100
commite5df4239e626675b24c5347e3eae90699c76f313 (patch)
treeea07281b04aee71885b9df351521cb0ac3d2d448 /tw/services/docker.scm
parent8a1155d74738df37cf40fabbea554e2fd803c84b (diff)
Protect against container failing to start
Diffstat (limited to 'tw/services/docker.scm')
-rw-r--r--tw/services/docker.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/tw/services/docker.scm b/tw/services/docker.scm
index 46c7a933..0f982836 100644
--- a/tw/services/docker.scm
+++ b/tw/services/docker.scm
@@ -121,7 +121,8 @@ system that this container relies on."))
(string-trim-both (get-string-all pipe) char-whitespace?)))
(close-pipe pipe)
;; We expect a hexadecimal container ID from `docker run'.
- (and (every (cut char-set-contains? hex <>)
+ (and (not (string=? "" container-id))
+ (every (cut char-set-contains? hex <>)
(string->list container-id))
container-id))))
;; First arg is shepherd's "running value", i.e. whatever `start' returned.