Stop / Delete all Docker Containers

Posted on 01 Nov 2016 AWS

Sometimes your docker containers get out of control.
The 2 shell commands below will stop all docker container to stop any conflicts with ports or delete all docker if you want to start a fresh.

# Stop All docker containers
docker stop $(docker ps -a -q)
# Delete all docker containers
docker rm $(docker ps -a -q)

Leave a Reply

Your email address will not be published.

*