From bd22aed868b5c53985da6b6550b3e0c47ffbbe67 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Fri, 3 Sep 2021 14:57:32 +0200 Subject: [PATCH] fix panic on scale down Signed-off-by: Nicolas De Loof --- pkg/compose/convergence.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compose/convergence.go b/pkg/compose/convergence.go index f38e5738d9e..e164418421f 100644 --- a/pkg/compose/convergence.go +++ b/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 {