Sfoglia il codice sorgente

Merge pull request #1711 from ndeloof/rename_race

prevent race condition renaming containers
Nicolas De loof 4 anni fa
parent
commit
2605aae33f
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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