lium volumes
Manage persistent volumes that can be attached to pods.
lium volumes SUBCOMMAND [OPTIONS]
Running lium volumes with no subcommand defaults to list.
Subcommands​
| Subcommand | Purpose |
|---|---|
list | List your volumes |
new NAME [--desc DESC] | Create a new volume |
rm INDICES [-y] | Delete volumes by index from list |
lium volumes list​
lium volumes list
The output assigns each volume a numeric index, used by rm. The HUID column is what you pass to lium up --volume id:<HUID>.
lium volumes new NAME​
| Flag | Effect |
|---|---|
-d, --desc TEXT | Volume description |
lium volumes new training-data
lium volumes new datasets --desc "ImageNet 2012"
lium volumes rm INDICES​
| Flag | Effect |
|---|---|
-y, --yes | Skip the confirmation prompt |
lium volumes rm 1 # Delete volume #1
lium volumes rm 1,2,5 # Multiple
lium volumes rm 1 -y # No confirmation
A volume must be detached before it can be deleted.
Attaching to a pod​
lium up 1 --volume id:brave-fox-3a # Existing volume
lium up 1 --volume new:name=training,desc="ML data" # Create + attach