Blog

Stop and Remove All Docker Containers

Sometimes it’s easier just to give up and start over ;)

df8a5c58-68a2-4f99-bc4d-3e080890d13a.jpg

Stop and remove all containers

1
2
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)

Remove all images

1
docker rmi $(docker images -q)