From f18ea91d632c0536e6596350e0f056fd7d8550eb Mon Sep 17 00:00:00 2001 From: James Walker Date: Thu, 21 Jul 2016 09:58:20 -0400 Subject: [PATCH] shut down docker containers (for docker for mac) --- home/bin/goodnight.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/home/bin/goodnight.sh b/home/bin/goodnight.sh index 9f3d1aa..033ccf1 100755 --- a/home/bin/goodnight.sh +++ b/home/bin/goodnight.sh @@ -5,6 +5,7 @@ for box in $(vagrant global-status|grep running|awk '{ print $1 }'); do vagrant # shutdown docker machines for machine in $(docker-machine ls -q); do docker-machine stop $machine; done +for container in $(docker ps -a -q); do docker stop $container; done # kill tmux sessions tmux kill-server