mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e6115a6c1c
This re-aligns the docs with what the cmd line now does. Signed-off-by: Doug Davis <dug@us.ibm.com>
34 lines
995 B
Markdown
34 lines
995 B
Markdown
<!--[metadata]>
|
|
+++
|
|
title = "volume ls"
|
|
description = "The volume ls command description and usage"
|
|
keywords = ["volume, list"]
|
|
[menu.main]
|
|
parent = "smn_cli"
|
|
+++
|
|
<![end-metadata]-->
|
|
|
|
# volume ls
|
|
|
|
Usage: docker volume ls [OPTIONS]
|
|
|
|
List volumes
|
|
|
|
-f, --filter=[] Provide filter values (i.e. 'dangling=true')
|
|
--help Print usage
|
|
-q, --quiet Only display volume names
|
|
|
|
Lists all the volumes Docker knows about. 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"`)
|
|
|
|
There is a single supported filter `dangling=value` which takes a boolean of `true` or `false`.
|
|
|
|
Example output:
|
|
|
|
$ docker volume create --name rose
|
|
rose
|
|
$docker volume create --name tyler
|
|
tyler
|
|
$ docker volume ls
|
|
DRIVER VOLUME NAME
|
|
local rose
|
|
local tyler
|