Last active
December 2, 2020 10:43
-
-
Save theeye-io/eb615785d7697bcea1b8dd9fbc683b4b 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
Probably in this case it is not installing that specific version (as you have notice)
It may have been the version at the moment of writing this script (3 years ago)
If you need that specific version, you can try installing it using dpkg