Skip to content

docker-compose down silently ignores arguments #9151

@Jille

Description

@Jille

Description

I tried to down one service. docker-compose down myservice killed all services instead of just the one, completely ignoring the argument I gave it.

Steps to reproduce the issue:

  1. Create a docker-compose.yml with 2+ services
  2. docker-compose up -d
  3. docker-compose down myservice

Describe the results you received:

# docker-compose down etcd
[+] Running 3/3
 ⠿ Container serviceone-1       Removed
 ⠿ Container servicetwo-1       Removed
 ⠿ Network mynetwork            Removed

Describe the results you expected:

I expected it to only remove the one service. Getting an error about superfluous arguments would've been fine too.

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker compose version:

Docker Compose version v2.2.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions