Menu

How to stop / remove all Docker containers

If you want to stop all running Docker containers you should execute command in terminal:

docker stop $(docker ps -a -q)

 

If you want to remove all Docker containers you should execute command in terminal:

docker rm $(docker ps -a -q)

 

Leave a Reply

Your email address will not be published. Required fields are marked *