說明
爲了方便中國區的用戶安裝不同版本的docker,我們在這裏提供針對中國網絡環境優化的安裝腳本。它們使用中國的軟件包倉庫(在此感謝USTC)。
用法
使用需要的docker版本替換以下腳本中的<docker-version-you-want>
curl -sSL https://github.com/gitlawr/install-docker/blob/1.0/<docker-version-you-want>.sh?raw=true | sh
或:
wget -qO- https://github.com/gitlawr/install-docker/blob/1.0/<docker-version-you-want>.sh?raw=true | sh
支持的Docker版本
注:會根據Linux發行版有少許區別,比如Ubuntu 16.04 下不兼容docker-1.10.3
1.10.3
1.11.2
1.12.1
1.12.2
1.12.3
1.12.4
1.12.5
1.12.6
1.13.0
1.13.1
17.03.0
17.03.1
17.04.0
備註
腳本基於Ubuntu_Xenial,CentOS7 以及 Debian_Jessie做的測試。如果在使用過程中遇到任何問題,歡迎向我們反饋:[email protected].
原文來源:Rancher Labs