Purge Docker debris
Docker is great at a lot of things but that doesn’t mean that it doesn’t require a dose of preventative maintenance periodically.
Over time, Docker deployments can consume a lot of space. Not only do they take up room, but they also create clutter and orphaned containers – computer cruft.
Performing a docker ls command may well reveal lots of dated containers that have been downloaded and often forgotten about or perhaps intermediate build images. Speaking from personal experience, in a large production environment, the reclaimed space can be in the tens of gigabytes. The thing is, it’s not just containers that consume resources but images, too.