Docker stop all

Stop all Docker containers

docker stop $(docker ps -a -q)

Remove all Docker containers

docker rm -v $(docker ps -a -q)

Remove all Docker images

docker rmi $(docker images -a -q)