Persistent Volumes
Volumes allow you to persist data across containers - perserving your deployment’s state after restarts
Currently, deployments with persistent volumes can only run one container at once
You can attach a volume to a deployment under a specified mount path, such as /data
. This will persist within your deployment, even when containers are deleted.
You can choose between ext4
and xfs
for your filesystem format.
Attach a volume
When creating a new deployment
Using the Hop Console
Using the Hop Console
When selecting the resources for your deployment, check the Add volume to deployment checkbox
Volume settings will appear. Here, you can choose the file system, mount path and volume size.
Using the Hop CLI
Using the Hop CLI
When using hop deploy
, you can interactively configure a volume or you can pass the following options to add a volume in a headless way: