Forked from theeye-io/installDockerAndDockerCompose.sh
Created
December 22, 2018 08:23
-
-
Save nghinguyenvan/752f03008071403831d849a28c410b66 to your computer and use it in GitHub Desktop.
Install Docker 1.13 and Docker-compose on ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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