Removing stopped containers in Docker

docker system prune
as an alternative you can use:
docker rm $(docker ps -a -q)