diff options
author | Timo Wilken | 2024-02-25 23:41:47 +0100 |
---|---|---|
committer | Timo Wilken | 2024-02-25 23:41:47 +0100 |
commit | e5df4239e626675b24c5347e3eae90699c76f313 (patch) | |
tree | ea07281b04aee71885b9df351521cb0ac3d2d448 /tw | |
parent | 8a1155d74738df37cf40fabbea554e2fd803c84b (diff) |
Protect against container failing to start
Diffstat (limited to 'tw')
-rw-r--r-- | tw/services/docker.scm | 3 |
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. |