Docker CLI
docker volume ls
List volume metadata, optionally filtering by label. This is not a check of file contents, data value or backup status. Example uses a synthetic lab label. A label is an inventory hint, not deletion authorization.
Formal Syntax & Structure
docker syntaxdocker
docker volume ls [OPTIONS]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| --filter | string | Filter expression, e.g. label=key=value. |
Working Example
Example Snippetdocker
docker volume ls --filter label=bytemind.lab=v06-cleanup