ghv30q
Last Updated: February 25, 2016
·
157
· DamonOehlman

Reliably Remove Docker Images

I've come across a few good ways to remove "trailing images" using a shell script, but no good ways to do a full cleanup of docker images. I ended up going with the following, which is still pretty manual but saves some time:

docker rmi $(docker images -q | head -n 1)