bash / zsh # kill all running containers docker kill $(docker ps -q) # delete all stopped containers. docker rm $(docker ps -a -q)