Skip to 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)

Previous Post
Running Await in a Constructor
Next Post
Workaround for 'Template parse errors;' in Angular