Blog

Stop and Remove All Docker Containers

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

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)