One Liner Code to Stop and Remove all Docker Containers

One line of source code to stop / remove all Docker containers:

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

Visit this page for more info on docker commands

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.