-
Notifications
You must be signed in to change notification settings - Fork 825
Open
Description
国内用户使用get-docker.sh安装docker-ce超时怎么办?
What should domestic users do when using get-docker.sh to install docker-ce timeout?
Solution (解决办法):
编辑get-docker.sh文件,大约在437行附近增加一行:
Edit the get-docker.sh file and add a line about 437 lines.
sed -i 's/download.docker.com/mirrors.aliyun.com\/docker-ce/g' /etc/yum.repos.d/docker-ce.repo
The additional examples are as follows (增加示例如下):
432 (
433 if ! is_dry_run; then
434 set -x
435 fi
436 $sh_c "$pkg_manager install -y -q $pre_reqs"
437 $sh_c "$config_manager --add-repo $yum_repo"
438 **sed -i 's/download.docker.com/mirrors.aliyun.com\/docker-ce/g' /etc/yum.repos.d/docker-ce.repo**
439
440 if [ "$CHANNEL" != "stable" ]; then
441 $sh_c "$config_manager $disable_channel_flag docker-ce-*"
442 $sh_c "$config_manager $enable_channel_flag docker-ce-$CHANNEL"
443 fi
444 $sh_c "$pkg_manager makecache"
445 )
Metadata
Metadata
Assignees
Labels
No labels