Przeglądaj źródła

prevent race condition renaming containers

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 lat temu
rodzic
commit
5f09e330fb
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      local/compose/convergence.go

+ 1 - 0
local/compose/convergence.go

@@ -105,6 +105,7 @@ func (s *composeService) ensureService(ctx context.Context, project *types.Proje
 	}
 
 	for _, container := range actual {
+		container := container
 		name := getContainerProgressName(container)
 
 		diverged := container.Labels[configHashLabel] != expected