To stop all docker containers


Use the combination of container stop and ps command, as shown here:
Code:
docker container stop $(docker ps -qa)
Warning! This will stop all containers

How to stop all docker containers?


[Image: docker-stop-all-containers-oneliner.gif]