File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Docker Hub 国内源使用帮助
2+ =====================
3+
4+ 说明
5+ ----
6+ 国内从 Docker Hub 拉取镜像有时网络较慢,此时可以配置镜像加速器。以下是国内的镜象加速器服务。
7+
8+
9+ 地址
10+ ----
11+ | 地址 | 镜像加速器 |
12+ | ----------- | ----------- |
13+ | ` https://docker.mirrors.ustc.edu.cn/ ` | 中科大 |
14+ | ` https://hub-mirror.c.163.com ` | 网易云 |
15+
16+
17+ Linux
18+ -----
19+
20+ 对于使用 systemd 的系统(Ubuntu 16.04+、Debian 8+、CentOS 7), 在配置文件 `` /etc/docker/daemon.json `` 中加入:
21+ ```
22+ {
23+ "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/", "https://hub-mirror.c.163.com"]
24+ }
25+ ```
26+
27+ 重新启动 dockerd:
28+ ```
29+ sudo systemctl restart docker
30+ ```
31+
32+ macOS
33+ -----
34+
35+ 1 . 打开 "Docker.app"
36+ 2 . 进入偏好设置页面(快捷键 `` ⌘, `` )
37+ 3 . 打开 "Docker Engine" 选项卡
38+ 4 . 参考 Linux 中 "使用 systemd 系统" 的配置,在 JSON 配置中添加 `` "registry-mirrors" `` 一项。
39+
40+ Windows
41+ -------
42+
43+ 在系统右下角托盘 Docker 图标内右键菜单选择 ` Settings ` ,打开配置窗口后左侧导航菜单选择 ` Docker Engine ` 。参考 Linux 中 "使用 systemd 系统" 的配置,在 JSON 配置中添加 ` "registry-mirrors" ` 一项 ,之后点击 "Apply & Restart" 保存并重启 Docker 即可。
44+
45+ 检查 Docker Hub 是否生效
46+ ------------------------
47+
48+ 在命令行执行 ` docker info ` ,如果从结果中看到了如下内容,说明配置成功。
49+ ```
50+ Registry Mirrors:
51+ https://docker.mirrors.ustc.edu.cn/
52+ https://hub-mirror.c.163.com
53+ ```
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ git clone https://github.com/FeatureProbe/FeatureProbe.git
8282cd FeatureProbe
8383docker compose up
8484```
85+ * For users in Mainland China, please refer to [ configure mirror] ( DOCKER_HUB.md ) to speed up your download.*
8586
8687Go to UI/Portal at ` localhost:4009 ` and use the default credentials to log in.
8788Note that you should replace ` 4009 ` with your port number if you made any changes previously.
You can’t perform that action at this time.
0 commit comments