Docker CLI
docker volume inspect
Read metadata such as the driver and labels. Use --format for narrowly scoped output; do not manipulate the underlying storage path directly. This example assumes the named lab volume exists. Metadata is not evidence that a record is recoverable.
Formal Syntax & Structure
docker syntaxdocker
docker volume inspect [OPTIONS] VOLUME [VOLUME...]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| VOLUME | string | Volume name. |
| --format | string | Go template for selected metadata. |
Working Example
Example Snippetdocker
docker volume inspect --format '{{.Name}} {{.Driver}}' bm-v06-notes