DEV Community

Discussion on: Useful Docker shell aliases to speed up Development

Collapse
 
rikvanderkemp profile image
Rik van der Kemp • Edited

Cool! You can simplify your docker stop command like this (if you want)

docker stop $(docker ps -q)

edit: remove 'a' from the ps command

Collapse
 
kovah profile image
Kevin Woblick

You can speed up this command by simply removing the a flag. It gets all Docker containers, even those which are stopped, which makes no sense for stopping all containers.

Collapse
 
rikvanderkemp profile image
Rik van der Kemp

You are right, also using this to remove all so got confused 😜