Browse Source

fix panic on scale down

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 years ago
parent
commit
bd22aed868
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/compose/convergence.go

+ 1 - 1
pkg/compose/convergence.go

@@ -171,7 +171,7 @@ func (c *convergence) ensureService(ctx context.Context, project *types.Project,
 	eg, _ := errgroup.WithContext(ctx)
 
 	for i, container := range containers {
-		if i > expected {
+		if i >= expected {
 			// Scale Down
 			container := container
 			eg.Go(func() error {