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)'

Leave a Reply

avatar
  Subscribe  
Notify of