remove all dangling docker image code example
Example 1: how to delete dangling docker images
sudo docker rmi $(sudo docker images -f "dangling=true" -q)
Example 2: how to delete dangling docker images
sudo sh -c 'docker rmi $(docker images -f "dangling=true" -q)'