Create a volume
POST /volumes/create
Create a volume
Example request:
Example response:
Status Codes:
201 - no error
500 - server error
JSON Parameters:
Name - The new volume's name. If not specified, Docker generates a name.
DriverOpts - A json object containing:
Size - The size of the new volume. The value must be integar with the unit of GB, and valid value is from 10-1000 (1TB). Default, 10.
Snapshot - The Id of the snapshot to restore. Optional
Last updated