Skip to content

Instantly share code, notes, and snippets.

@theeye-io
Last active December 2, 2020 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save theeye-io/eb615785d7697bcea1b8dd9fbc683b4b to your computer and use it in GitHub Desktop.
Save theeye-io/eb615785d7697bcea1b8dd9fbc683b4b 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
@trandung0101
Copy link

How can you make sure it install Install Docker 1.13?

@facugon
Copy link

facugon commented Dec 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment