Remove nameless Docker images
While creating Docker images with Packer I have found that I end up with lots of images <none>
in the repository and tag fields. To delete all of these in one pass just run the following command:
$ docker images | grep '<none>' | tr -s ' ' | cut -f 3 -d ' ' | xargs docker rmi
Written by genebean
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#