Skip to content
Snippets Groups Projects
Commit b7e23c43 authored by Armin Co's avatar Armin Co
Browse files

Update install_docker.sh

Always get the latest docker-compose version.
parent 5d25c673
No related branches found
No related tags found
No related merge requests found
......@@ -32,10 +32,14 @@ echo "";
echo "If you like you can add a user to the docker group";
echo "sudo usermod -aG docker user_name";
# get latest docker compose released tag
COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4)
# Install docker-compose
sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
chmod +x /usr/local/bin/docker-compose
sh -c "curl -L https://raw.githubusercontent.com/docker/compose/${COMPOSE_VERSION}/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose"
# Installing docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
# Optional create symbolic link:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment