Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 5f09e33

Browse files
committed
prevent race condition renaming containers
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent ccaa175 commit 5f09e33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

local/compose/convergence.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ func (s *composeService) ensureService(ctx context.Context, project *types.Proje
105105
}
106106

107107
for _, container := range actual {
108+
container := container
108109
name := getContainerProgressName(container)
109110

110111
diverged := container.Labels[configHashLabel] != expected

0 commit comments

Comments
 (0)