Skip to content

Instantly share code, notes, and snippets.

@johannestang
Created January 19, 2019 09:41
Show Gist options
  • Save johannestang/59342212160dcf2abd1d955908cfedd8 to your computer and use it in GitHub Desktop.
Save johannestang/59342212160dcf2abd1d955908cfedd8 to your computer and use it in GitHub Desktop.
Setup Docker on Ubuntu 18.04
sudo apt install apt-transport-https software-properties-common
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 bionic stable"
sudo apt update
sudo apt install docker-ce
sudo gpasswd -a `whoami` docker
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment