Network & Volume
Create Volume
Create a new Docker volume in a specific environment
POST
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Finsys/dockhand/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Creates a new Docker volume with the specified configuration. This endpoint supports the local driver and third-party volume plugins for network-attached storage, cloud storage, and distributed filesystems.Authentication
This endpoint requires authentication via cookies. The user must have thevolumes:create permission for the specified environment.
Query Parameters
The environment ID where the volume will be created. Required parameter.
Request Body
Volume name. Must be unique within the environment. Can contain letters, numbers, underscores, periods, and hyphens.
Volume driver to use. Default is
local. Can be a third-party plugin name (e.g., nfs, cifs, rexray, portworx).Volume driver options as key-value pairs. Options vary by driver.
User-defined labels as key-value pairs for organizing and identifying volumes.
Response
Whether the volume was created successfully
The name of the newly created volume
Error Responses
Examples
Basic Local Volume
Create a standard local volume for persistent data:NFS Volume
Create a volume backed by NFS for shared storage:CIFS/SMB Volume
Create a volume backed by Windows SMB share:Tmpfs Volume (RAM-based)
Create a volume in memory for fast temporary storage:Volume with Backup Label
Create a volume with metadata for backup automation:Driver Options Reference
Local Driver
Thelocal driver supports different mount types through driver options:
| Option | Description | Example |
|---|---|---|
type | Mount type (nfs, cifs, tmpfs, bind) | "nfs" |
device | Device or remote path to mount | ":/data/shared" |
o | Comma-separated mount options | "addr=192.168.1.100,rw" |
NFS Mount Options
Common NFS mount options in theo field:
addr=<IP>: NFS server IP addressrw/ro: Read-write or read-onlynfsvers=<version>: NFS version (3 or 4)soft/hard: Failure handlingtimeo=<seconds>: Timeout valueretrans=<count>: Number of retries
CIFS/SMB Mount Options
Common CIFS mount options in theo field:
username=<user>: SMB usernamepassword=<pass>: SMB passwordvers=<version>: SMB version (1.0, 2.0, 2.1, 3.0, 3.1.1)domain=<domain>: Windows domainfile_mode=<mode>: File permissions (e.g.,0777)dir_mode=<mode>: Directory permissions (e.g.,0777)
Tmpfs Mount Options
Common tmpfs mount options in theo field:
size=<size>: Maximum size (e.g.,1G,512M)mode=<permissions>: Directory permissions (e.g.,1777)uid=<uid>: Owner user IDgid=<gid>: Owner group ID
Notes
- Volume names must be unique within the environment
- The
namefield is required; all other fields are optional - Default driver is
localif not specified - Driver options vary by driver; consult driver documentation
- Volume creation is audited with the user, action, and volume details
- Volumes persist even after all containers using them are removed
- Use
driverOpts(camelCase) in the request body, notdriver_opts - For NFS/CIFS volumes, ensure the network storage is accessible from the Docker host
- Third-party volume plugins must be installed before use
