mirror of https://github.com/docker/compose.git
fix panic on scale down
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
ef461a3a26
commit
bd22aed868
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue