CmdID / docker / docker compose
docker compose volumes
List volumes Docker Compose reference
3 options Its page in the Docker Compose reference
Options
--dry-runExecute command in dry run mode--formatFormat output using a custom template: 'table': Print output in table format with column headers (default) 'table TEMPLATE': Print output in table format using the given Go template 'json': Print in JSON format 'TEMPLATE': Print output using the given Go template.--quiet, -qOnly display volume names