install.sh - check docker is running

This commit is contained in:
LouisLam
2021-08-19 12:15:07 +08:00
parent bb0af35d47
commit c9aa110f6c
2 changed files with 12 additions and 0 deletions

View File

@@ -209,6 +209,13 @@ if (type == "local") {
bash("exit 1");
}
bash("check=$(docker info)");
if (check == bash("*Is the docker daemon running*")) {
println("Error: docker is not running!");
bash("exit 1");
}
if ("$3" != "") {
port = "$3";
} else {