Johann Savalle

@yasha.solutions

Product designer and full stack developper living in france
< Back to all articles

stop and remove all docker containers

September 27, 2018
docker stop $(docker ps -a -q) #stop all
docker rm $(docker ps -a -q) #remove all

Simple.

You can make an alias and it to your bash profile :

alias dockerstopall='docker stop $(docker ps -a -q)'
alias dockerrmall='docker rm $(docker ps -a -q)'
< Back to all articles