Skip to main content
Volumes provide persistent storage that can be mounted into Porter Sandboxes. Create a volume before launching the sandbox, then pass the volume ID in volume_mounts.
Sandboxes are in a private beta. Please reach out to us at support@porter.run or over Slack if you are interested in joining.

Create and mount a volume

volume_mounts is an object keyed by the absolute mount path inside the sandbox. Each value is a volume ID.

List volumes

Get a volume by name

Volume names are unique within the cluster. Use get(name) when you know a volume name:
Volume names may contain lowercase letters, numbers, and hyphens, and must start and end with a letter or number. A volume name must be unique within the cluster for the lifetime of the volume. After the volume is deleted, the name can be used again.

Inspect a volume

Delete a volume

Delete volumes by name:
Deleting a volume fails while it is attached to a sandbox. Terminate any attached sandboxes before deleting the volume.

Next steps