remove unused containers docker code example
Example 1: docker remove all images
docker rmi $(docker images -a -q)
Example 2: docker dangling images
docker images -f dangling=true
docker rmi $(docker images -a -q)
docker images -f dangling=true