前言
2024-06-06,未知原因 docker.com 国内镜像全都被要求下架服务。
为了另求出路,采用 cloudflare wokers pages 搭建镜像服务。
特点:免费、简单
部署
本次使用 cmliu 提供的代码。
地址:https://github.com/muyiacc/CF-Workers-docker.io
- 克隆仓库,登陆 cloudflare,选择 Wokers & Pages
- create an application
- 选择 pages - connect to git - github - github account - select a repository
- begin setup
- custom domains
第 5 步自定义的域名即是 docker 镜像地址,如本人搭建的服务:
https://docker.ksg.us.kg 访问这个网址可查找镜像
使用
官方镜像路径前面加域名
1
|
docker pull docker.fxxk.dedyn.io/stilleshan/frpc:latest
|
1
|
docker pull docker.fxxk.dedyn.io/library/nginx:stable-alpine3.19-perl
|
一键设置镜像加速
修改文件 /etc/docker/daemon.json
,如果不存在则需要手动创建
1
2
3
4
5
6
7
8
9
|
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://docker.ksg.us.kg",
"https://docker.1panelproxy.com"
]
}
EOF
|
1
2
|
sudo systemctl daemon-reload
sudo systemctl restart docker
|
镜像列表
收集的公益镜像:
1
2
3
4
|
https://docker.526899.xyz
https://docker.1panelproxy.com
https://docker.888666222.xyz
https://docker.rainbond.cc
|
相似项目:https://github.com/muyiacc/cloudflare-docker-proxy
2025-05-18 更新
1
2
3
4
5
6
7
8
9
10
11
|
{
"registry-mirrors" : [
"https://docker.526899.xyz"
],
"insecure-registries" : [
"registry.docker-cn.com",
"docker.mirrors.ustc.edu.cn"
],
"debug": true,
"experimental": false
}
|