Remove all unused local volumes.
Section: Volumes and Mounts
Prune unused volumes
bash
bash
docker volume pruneExplanation
Useful after many test runs that leave dangling data.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Volumes and Mounts