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