how to remove all stopped docker containers code example
Example 1: remove stopped containers
$ docker rm $(docker ps -a -q)
Example 2: docker force remove container
docker rm -f [containerid]
Example 3: remove all containers docker
docker rmi $(docker images -q)