skip to Main Content
Stop And Remove ALL Docker Containers And Images

Stop and Remove ALL Docker Containers and Images

This is shamelessly stolen from The Humble Developer.

List All Containers

docker ps -a

Stop All Running Containers

docker stop $(docker ps -aq)

Remove All Containers

docker rm $(docker ps -aq)

Remove All Images

docker rmi $(docker images -q)

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.

Back To Top