List volumes
Changed onRequest
- Base URL/v1.57 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
Query parameters
JSON encoded value of the filters (a map[string][]string) to process on the volumes list. Available filters:
- dangling=<boolean> When set to true (or 1), returns all volumes that are not in use by a container. When set to false (or 0), only volumes that are in use by one or more containers are returned.
- driver=<volume-driver-name> Matches volumes based on their driver.
- label=<key> or label=<key>:<value> Matches volumes based on the presence of a label alone or a label and a value.
- name=<volume-name> Matches all or part of a volume name.
Response
Summary volume data that matches the query
Example response
{
"Volumes": [
{
"Name": "tardis",
"Driver": "custom",
"Mountpoint": "/var/lib/docker/volumes/tardis",
"CreatedAt": "2016-06-07T20:31:11.853781916Z",
"Status": {
"hello": "world"
},
"Labels": {
"com.example.some-label": "some-value",
"com.example.some-other-label": "some-other-value"
},
"Scope": "local",
"ClusterVolume": {
"Version": {
"Index": 373531
}
},
"Options": {
"device": "tmpfs",
"o": "size=100m,uid=1000",
"type": "tmpfs"
}
}
],
"Warnings": []
}Changes
- breaking
removed the media type
application/jsonfor the response with the status - info
api tag
Volumeadded - info
added the non-success response with the status
- breaking
- breaking
the
///response's property format changed fromdateTimetodate-timefor status - breaking
the
///response's property format changed fromdateTimetodate-timefor status - breaking
the
//response's property format changed fromdateTimetodate-timefor status - info
api tag
Volumeremoved - info
for the
queryrequest parameterfilters, the format was generalized fromjsonto no format - info
removed the non-success response with the status
- info
the
response's property default valueactivewas removed for the status - info
the
response's property default value-1was removed for the status - info
the
response's property default valuelocalwas removed for the status - info
the
response's property default valuesinglewas removed for the status - info
the
response's property default valuenonewas removed for the status - info
the
response's property default value-1was removed for the status
- breaking