Skip to content

[BUG] docker compose down --help prints incorrect description for the --volumes flag. #10610

@thallgren

Description

@thallgren

Description

The output of docker compose down --help suggests that the --volumes flag takes an argument although it appears to be a boolean flag. Passing a volume name as an argument results in an error.

Steps To Reproduce

Run

$ docker compose down --help

Observe the output about the --volumes flag:

  -v, --volumes volumes   Remove named volumes declared in the volumes section of the Compose file and anonymous volumes attached to containers.

I would have expected it to be:

  -v, --volumes       Remove named volumes declared in the volumes section of the Compose file and anonymous volumes attached to containers.

Compose Version

Docker Compose version v2.12.2

Docker Environment

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions