Usage
uc volume list
Flags
Filter volumes by machine name or ID. Can be specified multiple times or as a comma-separated list. Default is to include all machines.
-q, --quiet
Only display volume names (useful for scripting).
Output
The command displays a table with:- NAME - Volume name
- DRIVER - Volume driver (usually
local) - MACHINE - Machine where the volume exists
Examples
List all volumes
List volumes on a specific machine
List volumes on multiple machines
List volume names only
Useful for scripts:Use with Scripts
List all volumes and process them:Understanding the Output
Volume Names
Volumes are identified by name. The same volume name can exist on multiple machines (they’re independent volumes).Volume Driver
Most volumes use thelocal driver, which stores data in a directory on the machine. Other drivers (like NFS) may be available depending on what’s installed.
Machine Location
Shows which machine hosts the volume. Containers using this volume must run on this machine.Use Cases
Check Available Storage
See what volumes exist before creating a new service:Verify Volume Creation
After creating a volume, confirm it exists:Find Volumes by Machine
Before removing a machine, check what volumes it has:Related Commands
uc volume create- Create a volumeuc volume rm- Remove volumesuc machine ls- List machines
