Remove dangling (unreferenced) images in Docker
When you do
docker images
Without the -a option, and sometimes you find some images with the name <none>:<none> , this means that you have intermediate images in docker that are not referenced by any container, hence eating up disk space. To remove them simply
docker rmi $(docker images -f "dangling=true" -q)
Or in fish shell:
docker rmi (docker images -f "dangling=true" -q)
Written by Esteban
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Docker
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#