diff --git a/pkg/compose/pull.go b/pkg/compose/pull.go index 0e70c1892..f1b0fd8e7 100644 --- a/pkg/compose/pull.go +++ b/pkg/compose/pull.go @@ -204,6 +204,16 @@ func (s *composeService) pullServiceImage(ctx context.Context, service types.Ser Platform: platform, }) + if ctx.Err() != nil { + w.Event(progress.Event{ + ID: service.Name, + Status: progress.Warning, + Text: "Warning", + StatusText: "Interrupted", + }) + return "", nil + } + // check if has error and the service has a build section // then the status should be warning instead of error if err != nil && service.Build != nil {