docker compose delete all none images code example
Example 1: docker remove all images
docker rmi $(docker images -a -q)
Example 2: docker for mac remove unnamed images
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
docker rmi $(docker images -a -q)
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")