docker clean all unused layers code example Example: remove unused images docker manually version 1.12.6 $ docker rmi $(docker images -q -f dangling=true)