How it differs from the sandbox disk
The sandbox has its own disk. Its files belong to that one sandbox. Some providers keep these files when the sandbox stops, and others do not. Deleting the sandbox removes the files on its disk.
Kinds of storage
- A volume: a storage unit that you attach at a path. Data stays after the sandbox ends.
- An object storage mount: a bucket of object storage that appears as a folder in the sandbox.
- A network file system: a file system that the sandbox reads and writes over a network, such as NFS.
What to check on a provider
- Whether one volume can serve many sandboxes at once.
- Whether a sandbox sees changes made by another sandbox at once, or only after a reload.
- Speed. Mounted storage can be slower than the sandbox disk. Check which workloads the provider says it suits, such as database files.
Storage and state
Persistent storage keeps files. It does not keep running processes. To keep a running state, use a snapshot. An ephemeral sandbox needs storage like this to keep any file after a run.