-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
Description
Description
When running docker compose up --scale service=count where count is lower than the current count, no actions are shown about stopping/removing the superfluous containers.
Steps To Reproduce
compose.yaml:
version: '3'
services:
foobar:
image: alpine:latest
command: -c 'sleep 10m'
- Run
docker compose up --scale foobar=2 --detach - Run
docker compose up --scale foobar=1 --detach
The second command only prints that compose-foobar-2 is Running, but not mention that compose-foobar-1 was stopped/removed.
This is the case both with and without --dry-run.
Compose Version
Docker Compose version 2.24.1
Docker Environment
Client:
Version: 24.0.7
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: 0.12.1
Path: /usr/lib/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: 2.24.1
Path: /usr/lib/docker/cli-plugins/docker-compose
Anything else?
No response
Reactions are currently unavailable