Round-house kick all containers at once

Here some ways to kill all Docker containers at once…

Chuck Norris doesn’t need containers – He ships with a round-house kick!

stop all containers:

docker kill $(docker ps -q)

remove all containers

docker rm $(docker ps -a -q)

remove all docker images

docker rmi $(docker images -q)
Please share:

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.