stop all docker ps-a code example Example: stop all docker ps-a docker stop $(docker ps -a -q) docker rm $(docker ps -a -q)