mirror of https://github.com/docker/compose.git
prevent race condition renaming containers
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
ccaa1754d4
commit
5f09e330fb
|
@ -105,6 +105,7 @@ func (s *composeService) ensureService(ctx context.Context, project *types.Proje
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, container := range actual {
|
for _, container := range actual {
|
||||||
|
container := container
|
||||||
name := getContainerProgressName(container)
|
name := getContainerProgressName(container)
|
||||||
|
|
||||||
diverged := container.Labels[configHashLabel] != expected
|
diverged := container.Labels[configHashLabel] != expected
|
||||||
|
|
Loading…
Reference in New Issue