Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install docker specific version

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?

like image 832
brg Avatar asked Dec 26 '14 13:12

brg


People also ask

How do I change docker version?

To upgrade Docker Engine, first run sudo apt-get update , then follow the installation instructions, choosing the new version you want to install.


1 Answers

I find easier to check available versions with

sudo apt-cache policy docker-engine 

and then install the one you want:

sudo  apt-get install docker-engine=1.7.1-0~trusty 

It consists on simply following the instructions from docker docs https://docs.docker.com/engine/installation/ubuntulinux/, but selecting a particular version

like image 141
kiril Avatar answered Oct 02 '22 12:10

kiril