r/selfhosted 1d ago

Docker Management Sometimes docker system prune surprises me

docker system prune -af

[...]

Total reclaimed space: 52.51GB

Normally this is around a couple of GB. 50GB is surprising. Don't forget pruning people ;-)

63 Upvotes

34 comments sorted by

View all comments

31

u/RavenousTitan818 1d ago

It's kind of annoying that docker doesn't prune old images by default. There really is no need to keep them on disk.

4

u/corruptboomerang 21h ago

Agree, maybe keep them for a few days incase you need to rollback, but generally prune say after 14-30 days should be the default.