opened 10:12AM - 12 Nov 15 UTC
closed 08:43PM - 13 Nov 17 UTC
area/docs
Being able to install a specific version of docker is a recurring question (see …for example https://github.com/docker/docker/issues/9697, https://github.com/docker/docker/issues/13191, https://github.com/docker/docker/issues/13822, https://github.com/docker/docker/issues/15581, https://github.com/docker/docker/issues/15586, https://github.com/docker/docker/issues/15947)
We currently describe how to download a specific (static) binary on http://docs.docker.com/engine/installation/binaries/, but don't provide that information on how to do this using apt, yum, or dnf.
While this may be "general knowledge" on working with package managers, it would be a nice addition to explain users how to do this (and how to "pin" to a specific major/minor version)
for example, on ubuntu
``` bash
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
mkdir -p /etc/apt/sources.list.d
echo deb https://apt.dockerproject.org/repo3 ubuntu-trusty main > /etc/apt/sources.list.d/docker.list
apt-get update;
apt-get install -y -q docker-engine=1.x.x~
```