docker-convenience-scripts icon indicating copy to clipboard operation
docker-convenience-scripts copied to clipboard

Convenience script to remove untagged images

Open mcastellin opened this issue 6 years ago • 2 comments

Adding convenience script that removes untagged images from the local registry. I find myself with a lot of unused and untagged images when I develop new Dockerfiles and I need a fast way to remove old images that are generated during development and left eating up disk space.

mcastellin avatar Feb 29 '20 14:02 mcastellin

@mcastellin Adding convenience script that removes untagged images from the local registry. I find myself with a lot of unused and untagged images when I develop new Dockerfiles and I need a fast way to remove old images that are generated during development and left eating up disk space.

How about docker system prune -a?

felipecrs avatar Apr 30 '20 19:04 felipecrs

@felipecassiors I never tried the -a option before the removes all unused instead of dangling only. Thanks, I'll give this command a try and see if it serves the same purpose

mcastellin avatar May 01 '20 15:05 mcastellin