Skip to content

Commit

Permalink
fix(error): don't skip if failed to pull
Browse files Browse the repository at this point in the history
  • Loading branch information
yyewolf committed Nov 21, 2023
1 parent 8606222 commit 975f9aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/docker/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ func UpdateContainers(token string) error {
out, err := cli.ImagePull(context.Background(), c.Inspect.Config.Image, types.ImagePullOptions{})
if err != nil {
logrus.Error("Failed to update container at image pull: ", err)
continue
}

if out == nil {
out = io.NopCloser(strings.NewReader(""))
}

var buf [1024]byte
Expand Down

0 comments on commit 975f9aa

Please sign in to comment.