Skip to content

Instantly share code, notes, and snippets.

@wailorman
Last active July 24, 2019 19:14
Show Gist options
  • Save wailorman/e49552b520344af40fd75b2d5df2d05a to your computer and use it in GitHub Desktop.
Save wailorman/e49552b520344af40fd75b2d5df2d05a to your computer and use it in GitHub Desktop.
Install docker & docker-compose
wget -qO- https://gist.githubusercontent.com/wailorman/e49552b520344af40fd75b2d5df2d05a/raw/8a45ebc02d6a0a9c256667e167c3279ed2b68db8/install.sh | bash
# From https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=94798094
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common gpg-agent git htop
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get -y install docker-ce
sudo docker run hello-world
sudo usermod -aG docker ${USER}
sudo curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
echo "----------------------------------------------------------------------------"
echo "------------- Restart bash session to apply chmod (or just reconnect) ------"
echo "----------------------------------------------------------------------------"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment