Tuesday, December 2, 2014

Stop / Remove All Docker Containers

Sometimes it is necessary to remove or stop all containers running on the machine. Here is the command for this task:

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

No comments:

Post a Comment