docker images outputs all images currently available. By specifying
-f "dangling=true" we restrict the list to "dangling" images (i.e. untagged). By specifying the
-q option we use quiet mode, which limits the output to the images hash, which is the directly fed into
docker rmi, which removes the images with the corresponding hashes.