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)

About the author

Chuck Conway

Add comment

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

About

Chuck is an experienced software consultant creating technical solutions using ASP.Net Core, Angular 2+, React, the cloud (AWS and Azure), Docker, application architecture, agile (SCRUM, Lean), and performance tuning. Chuck lives in Folsom, California with his lovely wife Erin and their tabby, Mango.