What should domestic users do when using get-docker.sh to install docker-ce timeout?
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- docker, shell
- Domain
- devops, infrastructure
Research direction
Start in get-docker.sh around lines 432-445, where the yum repository is added and the package cache is refreshed. Check how the repository URL is configured for domestic users and verify that the proposed mirror substitution avoids the docker-ce installation timeout. Done means the installation path uses the intended mirror without breaking channel handling.
Written by the indexing model from the issue text.
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 )
- Dominant language
- Shell
- Stars
- 3.2k
- Forks
- 863
- Avg merge
- 3h 15m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/docker-install
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
docker/docker-install#575 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
docker/docker-install#559 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
docker/docker-install#554 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
docker/docker-install#548 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
docker/docker-install#540 ·
All issues in docker/docker-install
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug easy help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
lacs-project/sysknife#503 ·
-
help wanted kind/documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
liquidmetal-dev/flintlock#1239 ·