Skip to content

Instantly share code, notes, and snippets.

@bbl
Created July 8, 2017 13:16
Show Gist options
  • Save bbl/288ac43bd562380e237dc3c30940ae90 to your computer and use it in GitHub Desktop.
Save bbl/288ac43bd562380e237dc3c30940ae90 to your computer and use it in GitHub Desktop.
  1. Add docker repo
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
  1. Update
sudo apt-get update
  1. Check available versions
apt-cache madison docker-ce

The output will be like:

docker-ce | 17.06.0~ce-0~ubuntu-xenial | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
  1. Install appropriate package:
sudo apt-get install docker-ce=<VERSION>

Example:

sudo apt-get install docker-ce=17.06.0~ce-0~ubuntu-xenial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment