delete all docker instances code example
Example 1: docker remov all running containers
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)