Browse Source

Merge pull request #1711 from ndeloof/rename_race

prevent race condition renaming containers
Nicolas De loof 4 năm trước cách đây
mục cha
commit
2605aae33f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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