docker volume
Manage Docker volumes.
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}
docker volume ls
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
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).