ソースを参照

Merge pull request #599 from massalinux/master

Mark Shust 3 年 前
コミット
2620f24b6a
2 ファイル変更10 行追加1 行削除
  1. 2 1
      README.md
  2. 8 0
      compose/bin/stopall

+ 2 - 1
README.md

@@ -287,7 +287,8 @@ It is recommended to keep your root docker config files in one repository, and y
 - `bin/setup-ssl-ca`: Generate a certificate authority and copy it to the host.
 - `bin/start`: Start all containers, good practice to use this instead of `docker-compose up -d`, as it may contain additional helpers.
 - `bin/status`: Check the container status.
-- `bin/stop`: Stop all containers.
+- `bin/stop`: Stop all project containers.
+- `bin/stopall`: Stop all docker running containers
 - `bin/update`: Update your project to the most recent version of `docker-magento`.
 - `bin/xdebug`: Disable or enable Xdebug. Accepts params `disable` (default) or `enable`. Ex. `bin/xdebug enable`
 

+ 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