Steps to remove all Stopped containers If you want to remove the unused containers please follow this steps.
1. Listing all containers
#docker ps -a -q
2. Command to remove all containers which are not running
#docker rm $(docker ps -q -f status=exited)
To wipe all the docker containers use
docker rm $(docker ps -a -q)