Skip to content
Snippets Groups Projects
Commit 51329bb8 authored by Benzidane's avatar Benzidane
Browse files

check docker-ce installed

parent 13385a56
No related branches found
No related tags found
2 merge requests!196Updated linux install script,!194Resolve "Don't install docker if already installed"
This commit is part of merge request !196. Comments created here will be created in the context of that merge request.
......@@ -88,13 +88,23 @@ echo "ADMIN_EMAIL=${ADMIN_EMAIL}" >> /etc/environment
# STEP Install Docker
echo "-------- Install latest docker "
# TODO : Fix a version for docker ?
name="docker-ce"
# TODO : Fix a version for docker ?
dpkg -s $name &> /dev/null
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
if [ $? -ne 0 ]
then
echo "$name not installed"
apt-get update
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
echo "-------- Latest docker installed "
else
echo "$name already installed"
fi
# STEP "install docker-compose"
echo "-------- Install latest docker-compose "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment