docker untagged images code example
Example 1: docker remove images without tag
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
Example 2: remove all docker images
$images = docker images -a -q
foreach ($image in $images) { docker image rm $image -f }