Merge pull request #1383 from krsilas/fix/check-docker-installation

Check if docker installation was successful
This commit is contained in:
Andras Bacsai 2023-11-06 21:13:29 +01:00 committed by GitHub
commit ef8686d4da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,12 @@ apt install -y curl wget git jq jc >/dev/null 2>&1
if ! [ -x "$(command -v docker)" ]; then
echo "Docker is not installed. Installing Docker..."
curl https://releases.rancher.com/install-docker/${DOCKER_VERSION}.sh | sh
echo "Docker installed successfully"
if [ -x "$(command -v docker)" ]; then
echo "Docker installed successfully."
else
echo "Docker installation failed."
exit 1
fi
fi
echo -e "-------------"
echo -e "Check Docker Configuration..."