Skip to content

Commit 1fb97b5

Browse files
authored
Merge pull request #34 from Thinker-Joe/main
Add registry mirror usage
2 parents c4c5993 + 95c2e4f commit 1fb97b5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ docker pull yourdomain.com/ghcr.io/sky22333/hubproxy
6767
# 符合Docker Registry API v2标准的仓库都支持
6868
```
6969

70+
还可以把服务作为 Docker 的镜像加速器使用。
71+
在主机上编辑(或新建)`/etc/docker/daemon.json`
72+
`"registry-mirrors"` 中加入域名:
73+
74+
```json
75+
{
76+
"registry-mirrors": [
77+
"https://yourdomain.com"
78+
]
79+
}
80+
```
81+
82+
若已设置其他加速地址,直接并列添加后保存,
83+
再执行 `sudo systemctl restart docker` 让配置生效。
84+
7085
### GitHub 文件加速
7186

7287
```bash

0 commit comments

Comments
 (0)