Installing a specific version of docker-engine (v1.7+) on Ubuntu? -


docker have changed way docker-engine installed on ubuntu since version 1.7 (if i'm not mistaken). before example:

sudo apt-get install lxc-docker-1.3.3 

to install version 1.3.3 described in this answer. nowadays installation instructions tells do:

curl -ssl https://get.docker.com/ | sh 

but installs (or upgrades to) lastest version of docker. not want do, example when managing cluster of servers needs run specific docker version. question is, how install specific version required dependencies?

short answer add command after curl command

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

more detail explaination:

docker-engine used instead of lxc-docker since 1.7.x noticed.

the command used curl -ssl https://get.docker.com/ | sh shortcut install latest version, , works platform

if use ubuntu, can check detail steps inside https://get.docker.com, below:

# apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118e89f3a912897c070adbf76221572c52609d # echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main " >   /etc/apt/sources.list.d/docker.list # apt-get update  # apt-get install docker-engine 

if want specific version, replace last step to

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

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -