CmdID

CmdID / Commands

docker-volume

Manage Docker volumes. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Create a volume

docker volume create volume_nameIdentify

Create a volume with a specific label

docker volume create --label label volume_nameIdentify
--labelSet metadata for a volume Docker CLI reference

Create a tmpfs volume a size of 100 MiB and a uid of 1000

docker volume create --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 volume_nameIdentify
--optSet driver specific options Docker CLI reference

List all volumes

docker volume lsIdentify

Remove a volume

docker volume rm volume_nameIdentify

Display information about a volume

docker volume inspect volume_nameIdentify

Remove all unused local volumes

docker volume pruneIdentify

Display help for a subcommand

docker volume subcommand --helpIdentify