Baseten Sandboxes are now available and free to use until November 16. Each organization can run up to 10 sandboxes at once. To raise this limit, contact support.
Create a volume
To create a volume: Creation returns before the volume is ready. The volume is ready when its status isDEPLOYED, and its region is the one to use when you mount it.
- TypeScript
- Python
- Go
- CLI
Run the following code, which waits until the volume is ready:
Mount a volume
To mount a volume in a new sandbox: Create a sandbox in the volume’s region with the volume mounted at/data.
- TypeScript
- Python
- Go
- CLI
Run the following code with the same client:To mount it read-only, add
readOnly: true to the mount./data:
/data stay on the volume after you delete the sandbox.
Grow a volume
To grow a volume to 20 GiB:- TypeScript
- Python
- Go
- CLI
Run the following code:
Delete a volume
To delete a volume and its files: First delete the sandboxes that mount the volume.- TypeScript
- Python
- Go
- CLI
Run the following code:
baseten sandbox volume,
Create a sandbox volume,
and Sandbox lifecycle and expiration.