$ docker rm $(docker ps -a -q -f status=exited)
docker container prune
sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm
(docker ps -a |findstr Exited) | foreach-object {docker rm $_.split(" ")[-1]}
$ docker container prune
WARNING! This will remove all stopped containers.
Are you sure you want to continue? [y/N] y
Deleted Containers:
4a7f7eebae0f63178aff7eb0aa39f0627a203ab2df258c1a00b456cf20063
f98f9c2aa1eaf727e4ec9c0283bcaa4762fbdba7f26191f26c97f64090360
Total reclaimed space: 212 B