前言
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 访问这个网址可查找镜像
配置镜像
修改文件 /etc/docker/daemon.json
,如果不存在则需要手动创建
|
|
镜像列表
收集的公益镜像:
|
|
相似项目:https://github.com/muyiacc/cloudflare-docker-proxy