Why Does ‘docker system df’ Show Reclaimable Images When All Are Active?

0
2
Asked By CuriousCoder99 On

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

Answered By ContainerGuru On

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.

DevOpsDan -

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.

Answered By TechieTom On

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.

DockerDude42 -

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.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.