測試所有種類的安裝步驟後,我意識到,關鍵是準確的版本名稱進行安裝。這是我最終如何使用我想要的版本安裝的。政策的
實驗回購
$ 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 ...>
谷歌吧:https://github.com/docker/docker/releases/tag /v1.11.0 –
這是一個發行說明,但並未解釋如何安裝它。 – Andy