Docker command to stop and remove all containers

By | September 26, 2021

Listing all containers:

docker ps -a

Removing all containers

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

Leave a Reply

Your email address will not be published.