Stopping and removing all Docker containers at once

By: Kevin | July 27, 2016

I found myself getting tired of copy and pasting UUID’s to remove containers one by one. I found this little snippet to help speed things up.

Stop all containers:
docker stop $(docker ps -a -q)

Remove all containers:
docker rm $(docker ps -a -q)