Browse Source

Merge pull request #10051 from ndeloof/9897

fix race condition collecting pulled images IDs
Milas Bowman 2 years ago
parent
commit
b27ace6c55
1 changed files with 1 additions and 4 deletions
  1. 1 4
      pkg/compose/pull.go

+ 1 - 4
pkg/compose/pull.go

@@ -294,15 +294,12 @@ func (s *composeService) pullRequiredImages(ctx context.Context, project *types.
 				return err
 			})
 		}
+		err := eg.Wait()
 		for i, service := range needPull {
 			if pulledImages[i] != "" {
 				images[service.Image] = pulledImages[i]
 			}
 		}
-		err := eg.Wait()
-		if err != nil {
-			return err
-		}
 		return err
 	})
 }