docker volume prune

Estimated reading time: 1 minute


Remove all unused volumes


docker volume prune [OPTIONS]


Name, shorthand Default Description
--force, -f false Do not prompt for confirmation

Parent command

Command Description
docker volume Manage volumes
Command Description
docker volume create Create a volume
docker volume inspect Display detailed information on one or more volumes
docker volume ls List volumes
docker volume prune Remove all unused volumes
docker volume rm Remove one or more volumes

Extended description

Remove all unused volumes. Unused volumes are those which are not referenced by any conta


$ docker volume prune

WARNING! This will remove all volumes not used by at least one container.
Are you sure you want to continue? [y/N] y
Deleted Volumes:

Total reclaimed space: 36 B
chat icon Feedback? Suggestions? Can't find something in the docs?
Edit this page Request docs changes Get support