Answers for "docker stop all"

18

docker stop all

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

docker stop all containers

docker stop $(docker ps -a -q)
Posted by: Guest on January-02-2021
0

stop all docker machiens

Stop All docker machines : docker-machine stop $(docker-machine ls --format "{{.Name}}") (edited)
Start All docker machines :: docker-machine start $(docker-machine ls --format "{{.Name}}") (edited)
Stop a machines : docker-machine stop "<machine-name>" (edited)
Start a machines :: docker-machine start "<machine-name>" (edited)
Posted by: Guest on January-02-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language