From 219f4adace703244a954ac055918e1e1e38c9119 Mon Sep 17 00:00:00 2001 From: Yewolf Date: Fri, 24 Nov 2023 22:01:19 +0100 Subject: [PATCH] fix(cd): wait for pull --- internal/docker/handlers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/docker/handlers.go b/internal/docker/handlers.go index 124b575..663e9a0 100644 --- a/internal/docker/handlers.go +++ b/internal/docker/handlers.go @@ -90,9 +90,9 @@ func UpdateContainers(token string) error { out = io.NopCloser(strings.NewReader("")) } - var buf [1024]byte - io.ReadFull(out, buf[:]) - out.Close() + var buf []byte + // read out till it's exhausted + buf, _ = io.ReadAll(out) outStr := string(buf[:])