Docker CLI
docker volume create
Create a separately managed volume; providing a name permits later reuse. The default local driver is intended here. An existing name may be reused, not necessarily an empty volume: check for collisions before the lab. Output identifies the volume. Use a verified unused name and confirm the local driver; never reuse an existing volume in this lab.
Formal Syntax & Structure
docker syntaxdocker
docker volume create [OPTIONS] [VOLUME]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| VOLUME | string | Fresh lab volume name. |
| --label | string | Metadata label key or key=value. |
Working Example
Example Snippetdocker
docker volume create --label bytemind.lab=v06-cleanup bm-v06-cleanup