← Back
docker

Stop and remove all docker containers

Stop:

docker stop $(docker ps -a -q)

Remove:

docker rm $(docker ps -a -q)

Source

More: Docker tips and tricks