docker ps rm all code example
Example 1: remove all containers docker
docker rmi $(docker images -q)
Example 2: docker remove not running containers
docker container rm $(docker container ls –aq)
docker rmi $(docker images -q)
docker container rm $(docker container ls –aq)