Remove unnecessary Docker images to save disk space
Does this look familiar?
REPO TAG IMAGE ID CREATED SIZE
<none> <none> 1fa19d1d07e0 6 minutes ago 839.3 MB
<none> <none> aac7f7ee862b 10 minutes ago 839.3 MB
<none> <none> be4dbd3ca09e 12 minutes ago 735.5 MB
<none> <none> d3b3a29d7705 15 minutes ago 922.8 MB
When a docker build fails, we see left over containers and images that clutter our workspace and take up our hard disk.
Send them to /dev/null
where they belong with this command:
docker rmi $(docker images -q --filter "dangling=true")
Written by Chris McKinnel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Docker
Authors
Related Tags
#docker
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#