From 506389d9c718f9ee780cef09263c26d52b3a7d9f Mon Sep 17 00:00:00 2001 From: Hua Zhang Date: Fri, 11 Aug 2017 18:43:41 +0800 Subject: [PATCH] Use mirror provided by AzureChinaCloud and Aliyun In order to install docker engine on Ubuntu from China mirror provided by AzureChinaCloud and Aliyun if mirror option is present. usage: sh install --mirror AzureChinaCloud sh install --mirror Aliyun Without this change, the docker install will always fail on downloading from global site due to network issue. Signed-off-by: Hua Zhang --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 98c210c..8ffc776 100644 --- a/install.sh +++ b/install.sh @@ -75,6 +75,9 @@ case "$mirror" in Aliyun) DOWNLOAD_URL="https://mirrors.aliyun.com/docker-ce" ;; + AzureChinaCloud) + DOWNLOAD_URL="https://mirror.azure.cn/docker-ce" + ;; esac command_exists() {