docker volume create --label env=prod myvol

Category: Docker

docker volume create --label env=prod myvol

Create a named volume with labels

Creates the volume myvol with the metadata label env=prod for organization and filtering. Volumes outlive containers and store data independently of container lifecycle. List labels with docker volume inspect.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.