Browse Source

install

master
zeus 4 years ago
parent
commit
cc5c3cf5ce
  1. 19
      install.sh

19
install.sh

@ -74,8 +74,9 @@ then
exit exit
else else
#check if docker UP
dockerserverdown=$(docker info --format "{{json .}}" | jq .ServerErrors) dockerserverdown=$(docker info --format "{{json .}}" | jq .ServerErrors)
if [[ $dockerversion == *"permission denied"* ]]; then if [[ $dockerversion =~ *"permission denied"* ]]; then
echo "" echo ""
echo "docker server is down" echo "docker server is down"
echo "" echo ""
@ -94,7 +95,9 @@ else
exit exit
fi fi
#check docker version
dockerversion=$(docker info --format "{{json .}}" | jq .ServerVersion | cut -d'.' -f1) dockerversion=$(docker info --format "{{json .}}" | jq .ServerVersion | cut -d'.' -f1)
if [ ! -z $dockerversion ];then
dockerversion="${dockerversion#\"}" dockerversion="${dockerversion#\"}"
if [ $dockerversion -lt 19 ];then if [ $dockerversion -lt 19 ];then
echo "" echo ""
@ -113,6 +116,20 @@ else
toolsok='no' toolsok='no'
exit exit
fi fi
else
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
fi fi
#check for docker-compose #check for docker-compose

Loading…
Cancel
Save