Skip to content

Commit

Permalink
fix(cd): wait for pull
Browse files Browse the repository at this point in the history
  • Loading branch information
yyewolf committed Nov 24, 2023
1 parent 23ddbd7 commit 219f4ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/docker/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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[:])

Expand Down

0 comments on commit 219f4ad

Please sign in to comment.