Docker’s been eating most of my disk space. Here’s how I reclaimed it.
The docker system prune
command can remove unused Docker artifacts.
Delete unused things using docker system prune --filter until=240h
. This will remove old containers, images, cache files and networks.
Now that you’ve deleted some containers, you may want to delete their associated volumes as well with docker volume prune
.
I am a web developer helping make the world a better place through JavaScript, Ruby, and UI design. I write articles like these often. If you'd like to stay in touch, subscribe to my list.