clear all docker ps code example
Example 1: remove all containers docker
docker rm $(docker ps -aq)
Example 2: remove all containers docker
docker rmi $(docker images -q)
docker rm $(docker ps -aq)
docker rmi $(docker images -q)