Skip to content

Instantly share code, notes, and snippets.

@ishan-marikar
Last active December 29, 2017 21:47
Show Gist options
  • Save ishan-marikar/8a1145fd03ac0295dc63f9c55cfe2f7d to your computer and use it in GitHub Desktop.
Save ishan-marikar/8a1145fd03ac0295dc63f9c55cfe2f7d to your computer and use it in GitHub Desktop.
#!/bin/bash
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-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo systemctl status docker
sudo usermod -aG docker ${USER}
id -nG
#docker run hello-world
sudo curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.17.1/docker-compose-$(uname -s)-$(uname -m)"
sudo chmod +x /usr/local/bin/docker-compose
docker-compose -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment