Overview
Volume commands allow you to create and manage persistent storage volumes that can be mounted to sandboxes. Volumes persist data independently of sandbox lifecycle, making them ideal for databases, configuration files, and any data that needs to survive sandbox restarts or deletions.daytona volume create
Create a new persistent volume.Usage
Flags
--size,-s- Size of the volume in GB (default: 10)
Examples
Output
daytona volume list
List all volumes in your organization.Usage
Flags
--format- Output format (json, yaml)
Examples
Output
Displays a table with:- Volume ID
- Name
- Size
- Created date
- Mount status
daytona volume get
Get detailed information about a specific volume.Usage
Flags
--format- Output format (json, yaml)
Examples
Output
Displays detailed information including:- Volume ID
- Name
- Size
- Region
- State
- Created date
- Mounted sandboxes (if any)
daytona volume delete
Delete a volume.Usage
Examples
Output
Notes
- A volume cannot be deleted while it’s mounted to a running sandbox
- All data in the volume will be permanently lost
Using Volumes with Sandboxes
Mount a Volume During Sandbox Creation
Volumes are mounted when creating a sandbox using the--volume flag:
VOLUME_NAME:MOUNT_PATH
Common Patterns
Create Volume and Mount to Sandbox
Share Data Between Sandboxes
Manage Application Configuration
Database Persistence
Development Workspace Persistence
List Volumes and Clean Up
Volume Best Practices
Size Planning
- Start with smaller sizes and increase as needed
- Monitor volume usage to right-size your volumes
- Consider the type of data being stored (logs, databases, code, etc.)