mirror of
https://github.com/ciiiii/cloudflare-docker-proxy.git
synced 2026-03-15 08:53:18 +08:00
c7ca5c64f9a65dadea227e6a950415bff9eeee35
cloudflare-docker-proxy
We are currently observing frequent 429 Too Many Requests errors when this proxy accesses Docker Hub via Cloudflare Worker IP ranges. The root cause is still under investigation, but this issue may lead to unstable pulls or unexpected failures.
Due to the current instability, this project is not recommended for production use. We will provide updates as soon as more information becomes available.
If you're looking for proxy for helm, maybe you can try cloudflare-helm-proxy.
Deploy
- click the "Deploy With Workers" button
- follow the instructions to fork and deploy
- update routes as you requirement
Routes configuration tutorial
- use cloudflare worker host: only support proxy one registry
const routes = { "${workername}.${username}.workers.dev/": "https://registry-1.docker.io", }; - use custom domain: support proxy multiple registries route by host
- host your domain DNS on cloudflare
- add
Arecord of xxx.example.com to192.0.2.1 - deploy this project to cloudflare workers
- add
xxx.example.com/*to HTTP routes of workers - add more records and modify the config as you need
const routes = { "docker.libcuda.so": "https://registry-1.docker.io", "quay.libcuda.so": "https://quay.io", "gcr.libcuda.so": "https://k8s.gcr.io", "k8s-gcr.libcuda.so": "https://k8s.gcr.io", "ghcr.libcuda.so": "https://ghcr.io", };
Description
Languages
JavaScript
100%