Docker · tool · fg-0260

docker volume prune reports 'Total reclaimed space: 0B' and leaves every unused named volume

If you see Total reclaimed space: 0B, the cause and the fix for Docker are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Total reclaimed space: 0Bdocker system prune --volumes keeps named volumes that no container uses
Cause
Since Engine 23 (API 1.42) prune removes only anonymous volumes unless told to remove all. Volumes created before that upgrade cannot be classified, so the default prune never touches them.
Fix
List the unused volumes first, then prune with --all when you really mean every unused volume, including named ones.
Apply
docker volume ls --filter dangling=true docker volume prune --all
Affected
Docker Engine 23.0 and later (February 2023), API version 1.42 and later
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun