List volumes
docker volume ls [OPTIONS]
Name, shorthand | Default | Description |
---|---|---|
--filter, -f |
Provide filter values (e.g. ‘dangling=true’) | |
--format |
Pretty-print volumes using a Go template | |
--quiet, -q |
false |
Only display volume names |
Command | Description |
---|---|
docker volume | Manage volumes |
Command | Description |
---|---|
docker volume create | Create a volume |
docker volume inspect | Display detailed information on one or more volumes |
docker volume ls | List volumes |
docker volume prune | Remove all unused volumes |
docker volume rm | Remove one or more volumes |
Lists all the volumes Docker manages. You can filter using the -f
or
--filter
flag. The filtering format is a key=value
pair. To specify
more than one filter, pass multiple flags (for example,
--filter "foo=bar" --filter "bif=baz"
)
The currently supported filters are:
dangling
(boolean - true
or false
, 1
or 0
)driver
(a volume driver’s name)label
(label=<key>
or label=<key>=<value>
)name
(a volume’s name)