Tag Archives: image

Clean up untagged docker images

I usually build a lot of docker images on my laptop, and time over time the images starts eating up my disk space. Here is a quick and simple way to clean up untagged docker images

Basically, it just list all docker images with no tag (<none>) and then remove it. The assumption is untagged docker image is unused and safe to remove. When you build an image with the same tag again, the previous image will not be removed but untagged. So this is a quick way to clean up my hard drive 😀