Docker: How to remove all stopped containers

Run this command in your shell:

remove-stopped-containers.sh
docker rm $(docker ps -a -q)

Check out similar posts by category: Container, Docker