فهرست منبع

added script to stop all running container, usefull when swithching between projects

Martino Massalini 4 سال پیش
والد
کامیت
748f4c7126
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      compose/bin/stopall

+ 8 - 0
compose/bin/stopall

@@ -0,0 +1,8 @@
+#!/bin/bash
+if [ -z "$(docker ps -q)" ]
+then
+    echo "You have no running container"
+else
+    echo "Stopping all running containers"
+    docker stop $(docker ps -q)
+fi