rm docker images none code example
Example 1: docker remove all images
docker rmi $(docker images -a -q)
Example 2: docker remove none images
docker image prune --filter="dangling=true"
docker rmi $(docker images -a -q)
docker image prune --filter="dangling=true"