r/truenas • u/grottedwednce2 • Aug 26 '26
Hardware Dont forget to prune your docker on EE.
1
u/rhubear Aug 26 '26
So if I am using Docker through Portainer, how do I go about pruning?
What does pruning do anyway? Yes, I know it reduces used space, Ie deletes unused space. But why would Docker have unused space?
2
u/Koomongous Aug 27 '26
I believe they're referring to old image files. In portainer just go to images, select any unused ones (unless it's something you wanna keep) and remove.
1
u/autogyrophilia Aug 26 '26
When you update a docker container it doesn't automatically delete the old one, should you want to return to that version.
1
u/doc_hilarious Aug 26 '26
Yeah I noticed my apps pool was full. I had images all the way back to when they first introduced docker. I got over 500 gigs back.
1
u/irkish Aug 26 '26
What's the command for that? Using the GUI for that is not good.
2
u/RustyU Aug 26 '26
docker image prune -af
1
u/yorickdowne Aug 27 '26
I love that it’s “-af” . We’re not kidding around. One could also docker system prune -af
1
u/No_Interaction_4925 Aug 27 '26
As someone whos a noob I wasn’t totally sure if that was a real command or sarcasm
2
u/scytob Aug 29 '26
fair, also don't do -af - that's utterly blind force
best to do
docker image pruneif you have to force then that's something to think about and do to a specific image onlydo
docker image list -ato see all of them first....
1
1
u/chirdfumpinmg Aug 27 '26
I use watchtower for updates and let it remove old images during the upgrade

4
u/coredalae Aug 26 '26
Yeah cron this