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) Author: Chuck Conway is an AI Engineer with nearly 30 years of software engineering experience. He builds practical AI systems—content pipelines, infrastructure agents, and tools that solve real problems—and shares what he’s learning along the way. Connect with him on social media: X (@chuckconway) or visit him on YouTube and on SubStack.