Skip to content

Instantly share code, notes, and snippets.

@jay74jung
Forked from sheikhwaqas/install-docker.sh
Created August 21, 2018 07:54
Show Gist options
  • Save jay74jung/a81a0add1fa6225329f3e45465d955cf to your computer and use it in GitHub Desktop.
Save jay74jung/a81a0add1fa6225329f3e45465d955cf to your computer and use it in GitHub Desktop.
Install Docker & Docker-Compose on Ubuntu 16.04 LTS (Xenial). Run this file with sudo.
# Install Pre-requisites
apt update
apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt update
# Install Docker CE
apt install docker-ce -y
# Install Docker Compose
curl -L https://github.com/docker/compose/releases/download/1.20.1/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
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