From f2e00de5fa9e9b2559bd1d2ef257b3682aee4652 Mon Sep 17 00:00:00 2001 From: zeus Date: Tue, 12 Jan 2021 22:56:23 +0200 Subject: [PATCH] install --- install.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9815c56..82c48f6 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ - +#!/bin/bash wdir=$PWD @@ -73,6 +73,27 @@ then toolsok='no' exit else + + dockerserverdown=$(docker info --format "{{json .}}" | jq .ServerErrors) + if [[ $dockerversion == *"permission denied"* ]]; then + echo "" + echo "docker server is down" + echo "" + docker info --format "{{json .}}" | jq .ServerErrors + echo "" + echo "-----------USING UBUNTU------------" + echo "" + echo "Using the following commands you can enable and run docker server"; + echo "sudo systemctl enable docker" + echo "sudo systemctl start docker" + echo "sudo systemctl status docker" + echo "" + echo "After adding to the group (usermod command) your shell needs to be restarted. If you dont know what this means please just logout and log in again."; + echo "" + toolsok='no' + exit + fi + dockerversion=$(docker info --format "{{json .}}" | jq .ServerVersion | cut -d'.' -f1) dockerversion="${dockerversion#\"}" if [ $dockerversion -lt 19 ];then