Create a volume
/v1.33
/v1.33
/v1.33
/v1.33
POST
/volumes/create
Volume
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1.33/volumes/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"Driver": "custom",
"Labels": {
"com.example.some-label": "some-value",
"com.example.some-other-label": "some-other-value"
},
"Name": "tardis"
}'
Response Response Example
201 - Example 1
{
"CreatedAt": "2016-06-07T20:31:11.853781916Z",
"Driver": "custom",
"Labels": {
"com.example.some-label": "some-value",
"com.example.some-other-label": "some-other-value"
},
"Mountpoint": "/var/lib/docker/volumes/tardis",
"Name": "tardis",
"Scope": "local",
"Status": {
"hello": "world"
}
}
Request
Body Params application/json
Responses
Modified at 2022-09-10 17:56:07