List volumes
/v1.33
/v1.33
/v1.33
/v1.33
GET
/volumes
Volume
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/v1.33/volumes'
Response Response Example
200 - response
{
"Volumes": [
{
"CreatedAt": "2017-07-19T12:00:26Z",
"Driver": "local",
"Labels": {
"com.example.some-label": "some-value",
"com.example.some-other-label": "some-other-value"
},
"Mountpoint": "/var/lib/docker/volumes/tardis",
"Name": "tardis",
"Options": {
"device": "tmpfs",
"o": "size=100m,uid=1000",
"type": "tmpfs"
},
"Scope": "local"
}
],
"Warnings": []
}
Request
Query Params
filters
stringÂ
optional
map[string][]string
) toprocess on the volumes list. Available filters:
dangling=<boolean>
When set to true
(or 1
), returns allvolumes that are not in use by a container. When set to
false
(or
0
), only volumes that are in use by one or morecontainers are returned.
driver=<volume-driver-name>
Matches volumes based on their driver.label=<key>
or label=<key>:<value>
Matches volumes based onthe presence of a
label
alone or a label
and a value.name=<volume-name>
Matches all or part of a volume name.Responses
Modified at 2022-09-10 17:56:07