remove docker containers and images windows powershell code example
Example 1: docker remove exited containers
(docker ps -a |findstr Exited) | foreach-object {docker rm $_.split(" ")[-1]}
Example 2: docker remove all images powershell
docker images -q | %{docker rmi -f $_}