Skip to content

Instantly share code, notes, and snippets.

Avatar

Adrian Mace adrianmace

View GitHub Profile
@adrianmace
adrianmace / Install-DockerUtils.sh
Last active Jun 20, 2018 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
View Install-DockerUtils.sh
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
#Use the official docker install script
wget -qO- https://get.docker.com/ | sh
# Install docker-compose
COMPOSE_VERSION=`git ls-remote https://github.com/docker/compose | grep refs/tags | grep -oP "[0-9]+\.[0-9][0-9]+\.[0-9]+$" | tail -n 1`
sudo sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"