Choose the right storage type for your Pods.
/workspace
by default (this will be replaced by the network volume if one is attached). This can be changed by editing your Pod configuration.
/workspace
.
To learn how to create and use network volumes, see Create a network volume.
Feature | Container Volume | Disk Volume | Network Volume |
---|---|---|---|
Data persistence | Volatile (lost on stop/restart) | Persistent (retained until Pod deletion) | Permanent (retained independently from Pod lifecycles) |
Lifecycle | Tied directly to the Pod’s active session | Tied to the Pod’s lease period | Independent, can outlive Pods |
Performance | Fastest (locally attached) | Reliable, generally slower than container | Performance can vary (network dependent) |
Capacity | Determined by Pod configuration | Selectable at creation | Selectable and often resizable |
Cost | $0.1/GB/month | $0.1/GB/month | $0.07/GB/month |
Best for | Temporary session data, cache | Persistent application data, models, datasets | Shared data, portable storage, collaborative workflows |
/workspace
by default).