CF-Workers-docker.io
这个项目是一个基于 Cloudflare Workers 的 Docker 镜像代理工具。它能够中转对 Docker 官方镜像仓库的请求,解决一些访问限制和加速访问的问题。
A Cloudflare Workers-based proxy that lets you pull Docker container images through your own custom domain, bypassing regional access restrictions to Docker Hub.
This project is a proxy tool for Docker Hub, the main public registry where developers download container images. It runs on Cloudflare Workers, a serverless platform, and acts as a relay between your server and Docker Hub. The purpose is to work around access restrictions that prevent some users from reaching Docker Hub directly.
Deployment is done through Cloudflare, either as a Worker (by pasting a single JavaScript file into the Cloudflare dashboard) or as a Pages project (by forking the repository and connecting it to your Cloudflare account with one click). After deployment, your custom domain becomes a Docker registry mirror.
Once the proxy is running, you can use it in two ways. The first is to prefix the image name you want to pull with your custom domain, for example typing your domain in front of a standard Docker pull command. The second is to set your custom domain as a registry mirror in Docker's configuration file, so all pulls automatically route through it without changing your commands.
The README notes that using this kind of proxy service carries risks under Cloudflare's terms of service, since proxying traffic in this way resembles a VPN or similar service. Users are advised to weigh that risk themselves. The README also lists several third-party DockerHub mirror services maintained by others, as a reference, though it states no security verification has been done on those.
The repository is written in JavaScript and is intended for developers who are comfortable with basic server configuration and Cloudflare account management.
Where it fits
- Set up a personal Docker Hub mirror on your custom domain to bypass regional access restrictions.
- Configure the Docker daemon to automatically route all image pulls through your proxy without changing pull commands.
- Deploy a serverless Docker registry proxy in minutes by pasting a single JavaScript file into the Cloudflare dashboard.