1
1
[ ** 第三方 DockerHub 镜像服务列表** ] ( https://github.com/cmliu/CF-Workers-docker.io?tab=readme-ov-file#%E7%AC%AC%E4%B8%89%E6%96%B9-dockerhub-%E9%95%9C%E5%83%8F%E6%9C%8D%E5%8A%A1 )
2
2
3
- ![ img] ( ./img.png )
3
+ ![ CF-Workers-docker.io] ( ./img.png )
4
+
4
5
# 🐳 CF-Workers-docker.io:Docker仓库镜像代理工具
5
6
6
7
这个项目是一个基于 Cloudflare Workers 的 Docker 镜像代理工具。它能够中转对 Docker 官方镜像仓库的请求,解决一些访问限制和加速访问的问题。
23
24
例如您的Workers项目域名为:` docker.cmliussss.net ` ;
24
25
25
26
### 1.官方镜像路径前面加域名
27
+
26
28
``` shell
27
29
docker pull docker.cmliussss.net/stilleshan/frpc:latest
28
30
```
31
+
29
32
``` shell
30
33
docker pull docker.cmliussss.net/library/nginx:stable-alpine3.19-perl
31
34
```
32
35
33
36
### 2.一键设置镜像加速
37
+
34
38
修改文件 ` /etc/docker/daemon.json ` (如果不存在则创建)
39
+
35
40
``` shell
36
41
sudo mkdir -p /etc/docker
37
42
sudo tee /etc/docker/daemon.json << -'EOF '
42
47
sudo systemctl daemon-reload
43
48
sudo systemctl restart docker
44
49
```
50
+
45
51
### 3. 配置常见仓库的镜像加速
46
- #### 3.1 配置
47
- Containerd 较简单,它支持任意 ` registry ` 的 ` mirror ` ,只需要修改配置文件 ` /etc/containerd/config.toml ` ,添加如下的配置:
52
+
53
+ #### 3.1 配置
54
+
55
+ ` Containerd ` 较简单,它支持任意 ` registry ` 的 ` mirror ` ,只需要修改配置文件 ` /etc/containerd/config.toml ` ,添加如下的配置:
56
+
48
57
``` yaml
49
58
[plugins."io.containerd.grpc.v1.cri".registry]
50
59
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
51
60
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
52
61
endpoint = ["https://xxxx.xx.com"]
62
+ [plugins."io.containerd.grpc.v1.cri".registry.mirrors."registry.k8s.io"]
63
+ endpoint = ["https://xxxx.xx.com"]
53
64
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."k8s.gcr.io"]
54
65
endpoint = ["https://xxxx.xx.com"]
55
66
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."gcr.io"]
@@ -59,7 +70,9 @@ Containerd 较简单,它支持任意 `registry` 的 `mirror`,只需要修改
59
70
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."quay.io"]
60
71
endpoint = ["https://xxxx.xx.com"]
61
72
```
62
- ` Podman ` 同样支持任意 ` registry ` 的 ` mirror ` ,修改配置文件 ` /etc/containers/registries.conf ` ,添加配置:
73
+
74
+ ` Podman ` 同样支持任意 ` registry ` 的 ` mirror ` ,修改配置文件 ` /etc/containers/registries.conf ` ,添加配置:
75
+
63
76
``` yaml
64
77
unqualified-search-registries = ['docker.io', 'k8s.gcr.io', 'gcr.io', 'ghcr.io', 'quay.io']
65
78
@@ -71,6 +84,14 @@ location = "registry-1.docker.io"
71
84
[[registry.mirror]]
72
85
location = "xxxx.xx.com"
73
86
87
+ [[registry]]
88
+ prefix = "registry.k8s.io"
89
+ insecure = true
90
+ location = "registry.k8s.io"
91
+
92
+ [[registry.mirror]]
93
+ location = "xxxx.xx.com"
94
+
74
95
[[registry]]
75
96
prefix = "k8s.gcr.io"
76
97
insecure = true
@@ -106,13 +127,18 @@ location = "xxxx.xx.com"
106
127
```
107
128
108
129
#### 3.3 使用
109
- 对于以上配置,k8s在使用的时候,就可以直接` pull ` 外部无法pull的镜像了
110
- 手动可以直接` pull ` 配置了` mirror ` 的仓库
111
- ` crictl pull registry.k8s.io/kube-proxy:v1.28.4 `
112
- ` docker pull nginx:1.21 `
130
+
131
+ 对于以上配置,k8s 在使用的时候,就可以直接 ` pull ` 外部无法 pull 的镜像了。
132
+
133
+ ``` shell
134
+ # 手动可以直接pull配置了mirror的仓库
135
+ crictl pull registry.k8s.io/kube-proxy:v1.28.4
136
+ docker pull nginx:1.21
137
+ ```
113
138
114
139
## 🔧 变量说明
115
- | 变量名 | 示例 | 必填 | 备注 |
140
+
141
+ | 变量名 | 示例 | 必填 | 备注 |
116
142
| --| --| --| --|
117
143
| URL302 | ` https://t.me/CMLiussss ` | ❌| 主页302跳转 |
118
144
| URL | ` https://www.baidu.com/ ` | ❌| 主页伪装(设为` nginx ` 则伪装为nginx默认页面) |
@@ -121,6 +147,7 @@ location = "xxxx.xx.com"
121
147
# 🛠️ 第三方 DockerHub 镜像服务
122
148
123
149
** 注意:**
150
+
124
151
- 以下内容仅做镜像服务的整理与搜集,未做任何安全性检测和验证。
125
152
- 使用前请自行斟酌,并根据实际需求进行必要的安全审查。
126
153
- 本列表中的任何服务都不做任何形式的安全承诺或保证。
0 commit comments