stop running all containers docker code example Example: docker delete all containers docker stop $(docker ps -a -q) docker rm $(docker ps -a -q)