Answers for "how to stop all containers in docker with single command"

41

stop all container in docker

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Posted by: Guest on May-10-2020
1

To stop all running docker containers

docker stop $(docker ps –a –q)
Posted by: Guest on January-06-2022

Code answers related to "how to stop all containers in docker with single command"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language