mirror of
https://github.com/docker/compose.git
synced 2025-07-21 04:34:38 +02: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
@ -171,7 +171,7 @@ func (c *convergence) ensureService(ctx context.Context, project *types.Project,
|
|||||||
eg, _ := errgroup.WithContext(ctx)
|
eg, _ := errgroup.WithContext(ctx)
|
||||||
|
|
||||||
for i, container := range containers {
|
for i, container := range containers {
|
||||||
if i > expected {
|
if i >= expected {
|
||||||
// Scale Down
|
// Scale Down
|
||||||
container := container
|
container := container
|
||||||
eg.Go(func() error {
|
eg.Go(func() error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user