Why are there reclaimable image spaces after running Docker prune commands?
Asked by
_garden_hose
I ran some Docker commands to clean up unused images, specifically `docker image prune -a` and `docker system prune`. However, when I checked the output of `docker system df`, it shows that all my working images are reclaimable, even though the total and active images appear to be the same. Here's the output I got:
```
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 56 56 34.72GB 34.72GB (100%)
Containers 56 56 689.3MB 0B (0%)
Local Volumes 3 3 0B 0B
Build Cache 0 0 0B 0B
```
I'm confused about why there's reclaimable space when the total and active images are the same. Shouldn't the reclaimable space be 0 GB? Any insights on this would be appreciated!
Answers
Are all your containers actually stopped? The output says theyโre active, which could indicate thereโs an underlying issue affecting how reclaimable space is calculated. Some users mentioned issues like this with Docker version 29, so it could be a version-specific quirk.
Reply to this answer
Have you checked how many images are listed with `docker image ls`? That might give you a clearer picture of whatโs going on. Even though the total and active numbers match, there could be images that are technically untagged or dangling, which might explain the reclaimable space.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions