How to install specific version of Docker(like 1.3.2
)?
I am unable to find any documentation in docker official docs. Referring this link for Ubuntu.
Following instructions install docker version 1.0.1
:
$ sudo apt-get update
$ sudo apt-get install docker.io
Also, following instructions install latest version of docker 1.4.1
:
$ sudo sh -c "echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
$ sudo apt-get update
$ sudo apt-get install lxc-docker
How can I install specific version like 1.3.2
?
Got the answer from this github
issue comment
.Summary of above commit:-
If permission issue then use
sudo
as:Bonus Tip:
Don't know which version? Then hit
Tab
afterlxc-docker-
as:to see list of available docker versions.
Another option is to replace
install -y lxc-docker
in the script withinstall -y lxc-docker-<version>
.For example, this will install docker
1.6.2
:I got version 1.6.2 years old from source on Ubuntu 16.04. This might not translate to other Docker versions:
git clone https://github.com/moby/moby docker
cd docker
git tag -l
-- find your tag of interest in this list (e.g. v1.6.2)git checkout <tag name>
sudo make build
Depending on how old your version is, you might see some errors in this step. If you see sample docker images failing to get pulled in, feel free to comment the associated lines out in the
Dockerfile
. You might see alvm2
source related failure. Modify the non-existent link to the source specified here. Specifically, in my case, I had to change makeDockerfile
refer to thelvm2
source code at git atgit://sourceware.org/git/lvm2.git
.sudo make binary
Replace 1.6.2 with the version you want.
I find easier to check available versions with
and then install the one you want:
It consists on simply following the instructions from docker docs https://docs.docker.com/engine/installation/ubuntulinux/, but selecting a particular version
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.
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.
then select the proper version and place it in below command.