Skip to content

Instantly share code, notes, and snippets.

@sheikhwaqas
Created April 9, 2018 13:11
Show Gist options
  • Save sheikhwaqas/fcb77d9d8484116c1223d84a1c7378f2 to your computer and use it in GitHub Desktop.
Save sheikhwaqas/fcb77d9d8484116c1223d84a1c7378f2 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