I wrote this four years ago, so instead use this command:
$ docker rmi $(docker images -q -f dangling=true)
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.