mirror of
https://github.com/docker/compose.git
synced 2026-10-22 03:42:22 +00:00
fix panic on scale down
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
ef461a3a26
commit
bd22aed868
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue