I ran `docker system df` after performing `docker image prune -a` and `docker system prune`, but I'm confused by the output. It indicates that while there are 56 total images and all 56 are active, there's still 34.72GB of reclaimable image space. Shouldn't the reclaimable value be 0 GB since all images are in use? Can anyone clarify what this indicates?
2 Answers
Make sure all your containers are actually stopped. Sometimes, they may appear active when they are just hanging. This can lead to these kinds of discrepancies in your reclaimable space. I noticed something similar in version 29 of Docker, which I didn't encounter in version 28.
You might want to check with `docker image ls` to see how many images are actually listed. Sometimes it could be a lingering issue from previous images that haven't been pruned properly. Just because it's showing active doesn't mean there aren't remnants behind.
Yeah, that's the thing. If you see all the images displayed in your `docker image ls`, it could just be that some of them are left hanging around, even if they appear in use.

Exactly! After I had all my containers inactive, the reclaimable space adjusted correctly. Just keep an eye on the version differences, as some behaviors get updated.