rm all exited container code example
Example: docker remove exited containers
(docker ps -a |findstr Exited) | foreach-object {docker rm $_.split(" ")[-1]}
(docker ps -a |findstr Exited) | foreach-object {docker rm $_.split(" ")[-1]}