aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.