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