g18ubq
Last Updated: February 25, 2016
·
173
· genebean

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