mirror of
https://github.com/docker/compose.git
synced 2025-07-23 05:34:36 +02:00
fix race condition collecting pulled images IDs
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
804d7163a7
commit
a73dce44b3
@ -294,15 +294,12 @@ func (s *composeService) pullRequiredImages(ctx context.Context, project *types.
|
|||||||
return err
|
return err
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
err := eg.Wait()
|
||||||
for i, service := range needPull {
|
for i, service := range needPull {
|
||||||
if pulledImages[i] != "" {
|
if pulledImages[i] != "" {
|
||||||
images[service.Image] = pulledImages[i]
|
images[service.Image] = pulledImages[i]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err := eg.Wait()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return err
|
return err
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user