-
-
Save xontik/de90da32c6459a070fad9a740753fb99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#from : | |
#https://gist.github.com/deviantony/2b5078fe1675a5fedabf1de3d1f2652a | |
#https://gist.github.com/tancou/adbdacd1aa1d3afc68c2d877c6ef353c | |
apt update -y | |
apt install curl -y | |
apt install qemu-guest-agent -y | |
curl -sSL https://get.docker.com/ | sh | |
usermod -aG docker ${USER} | |
# 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" | |
# Output compose version | |
docker-compose -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment