docker-volume - Man Page
Manage volumes
Examples (TL;DR)
- Create a volume:
docker volume create volume_name
- Create a volume with a specific label:
docker volume create --label label volume_name
- Create a
tmpfs
volume a size of 100 MiB and an uid of 1000:docker volume create --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 volume_name
- List all volumes:
docker volume ls
- Remove a volume:
docker volume rm volume_name
- Display information about a volume:
docker volume inspect volume_name
- Remove all unused local volumes:
docker volume prune
- Display help for a subcommand:
docker volume subcommand --help
Synopsis
docker volume COMMAND
Description
The docker volume command has subcommands for managing data volumes. A data volume is a specially-designated directory that by-passes storage driver management.
Data volumes persist data independent of a container's life cycle. When you delete a container, the Docker daemon does not delete any data volumes. You can share volumes across multiple containers. Moreover, you can share data volumes with other computing resources in your system.
To see help for a subcommand, use:
docker volume COMMAND --help
For full details on using docker volume visit Docker's online documentation.
Options
-h, --help[=false] help for volume
See Also
docker(1), docker-volume-create(1), docker-volume-inspect(1), docker-volume-ls(1), docker-volume-prune(1), docker-volume-rm(1), docker-volume-update(1)
Referenced By
docker-volume-create(1), docker-volume-inspect(1), docker-volume-ls(1), docker-volume-prune(1), docker-volume-rm(1), docker-volume-update(1).