2016-06-30 54 views
0

許多文章解釋瞭如何安裝特定版本的Docker。然而,他們往往是相當老,不適用(或不知何故不爲我工作)特別安裝較舊的Docker引擎 - 1.11.0〜dev

我想安裝Docker Engine 1.11.0〜dev我該怎麼做?

所需的版本

Docker version 1.11.0-dev, build 79edcc5, experimental 

目前的最新版本

Docker version 1.11.2, build b9f10c9 
+0

谷歌吧:https://github.com/docker/docker/releases/tag /v1.11.0 –

+0

這是一個發行說明,但並未解釋如何安裝它。 – Andy

回答

0

測試所有種類的安裝步驟後,我意識到,關鍵是準確的版本名稱進行安裝。這是我最終如何使用我想要的版本安裝的。政策的

實驗回購

$ echo "deb [arch=amd64] https://apt.dockerproject.org/repo ubuntu-trusty experimental" | sudo tee -a /etc/apt/sources.list.d/docker.list 

$ sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 

$ sudo apt-get update 

# This is the key step for me to find the exact package names to install 
$ apt-cache policy docker-engine 

$ sudo apt-get install docker-engine=1.11.0~dev~git20160331.233925.0.4a7bd7e-0~trusty 

樣本輸出

$ apt-cache policy docker-engine 
    1.12.0~dev~git20160421.173724.0.6f67c13-0~trusty 0 
     500 https://apt.dockerproject.org/repo/ ubuntu-trusty/experimental amd64 Packages 
    1.12.0~dev~git20160420.164247.0.3022a43-0~trusty 0 
     500 https://apt.dockerproject.org/repo/ ubuntu-trusty/experimental amd64 Packages 
    1.11.0~dev~git20160406.072940.0.bb9b173-0~trusty 0 
     500 https://apt.dockerproject.org/repo/ ubuntu-trusty/experimental amd64 Packages 
    1.11.0~dev~git20160405.073835.0.8d31b0f-0~trusty 0 
     500 https://apt.dockerproject.org/repo/ ubuntu-trusty/experimental amd64 Packages 

主要回購

$ echo "deb [arch=amd64] https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee -a /etc/apt/sources.list.d/docker.list 

<... the rest is the same ...>