How can I install a specific version of docker, e.g. 1.6.2?
The docker docs say to install on Ubuntu, use the following command:
wget -qO- https://get.docker.com/ | sh
Looking at the script, it basically adds docker to the sources list then does
apt-get install -y -q lxc-docker
which installs the latest version.
I tried replacing lxc-docker in the script with lxc-docker=1.6.2 but it says it can’t find that version. On inspecting the available versions in the archive using
This does not seem to work anymore with docker v1.8.
I’d be very interested if somebody figured out to install docker 1.6.x or 1.7.x versions including dependencies, that still works after 1.8 was released.
For versions after 1.7; (sometimes I find you need a 1.7.1 client to push/pull from a 1.8+ private private registry in a docker container mapping external disks for persistence)
As Docker Introduces two different flavors (CE and EE) the best and easy way of installing Docker on any system. please run the below command and you do not have to do any thing.
wget -qO- https://get.docker.com/ | sh
if you want to install a specific version of a docker, you can run below command to find what all version of docker is present.
apt-cache madison docker-ce #(for ubuntu)
yum list docker-ce.x86_64 --showduplicates | sort -r #(for centos)
then select the proper version and place it in below command.
wget -qO- https://get.docker.com/ | sed 's/docker-ce/docker-ce=<DOCKER_VERSION/' | sh