Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nghinv/3f4d1bdebc519e27140d21a8c8a91427 to your computer and use it in GitHub Desktop.
Save nghinv/3f4d1bdebc519e27140d21a8c8a91427 to your computer and use it in GitHub Desktop.
Install Docker 1.13 and Docker-compose on ubuntu 16.04
#1.Install packages to allow apt to use a repository over HTTPS:
sudo apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
#2.Add Docker official GPG key:
curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -
#3.Setup Docker Repository
sudo add-apt-repository \
"deb https://apt.dockerproject.org/repo/ \
ubuntu-$(lsb_release -cs) \
main"
#4 Update packages
sudo apt-get update
#5 Install Packages
sudo apt-get -y install docker-engine
#6 Install Docker-Compose
curl -L https://github.com/docker/compose/releases/download/1.6.0/docker-compose-`uname -s`-`uname -m` > /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