docker remove untagged images code example
Example 1: docker remove images without tag
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
Example 2: docker for mac remove unnamed images
docker rmi $(docker images | grep "^" | awk "{print $3}")
Example 3: docker delete images without tag
docker rmi $(docker images -a|grep ""|awk '$1=="" {print $3}')
Example 4: delete docker image repository none
docker rmi $(docker images -f “dangling=true” -q)