installation: Check docker runnin status before installing reNgine

This commit is contained in:
Bimochan Shrestha
2021-08-26 15:40:50 +05:30
committed by Yogesh Ojha
parent 4867bd553d
commit bcac3e6c82
+15
View File
@@ -75,6 +75,21 @@ else
apt install make
fi
echo " "
tput setaf 4;
echo "#########################################################################"
echo "Checking Docker status"
echo "#########################################################################"
if docker info >/dev/null 2>&1; then
tput setaf 4;
echo "Docker is running."
else
tput setaf 1;
echo "Docker is not running. Please run docker and try again."
exit 1
fi
echo " "
tput setaf 4;