Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ciiiii/cloudflare-docker-proxy
A docker registry proxy run on cloudflare worker.
https://github.com/ciiiii/cloudflare-docker-proxy
cloudflare-worker docker-registry proxy
Last synced: 4 days ago
JSON representation
A docker registry proxy run on cloudflare worker.
- Host: GitHub
- URL: https://github.com/ciiiii/cloudflare-docker-proxy
- Owner: ciiiii
- Created: 2022-03-21T18:32:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-08T03:31:11.000Z (2 months ago)
- Last Synced: 2024-12-01T04:29:58.463Z (11 days ago)
- Topics: cloudflare-worker, docker-registry, proxy
- Language: JavaScript
- Homepage:
- Size: 71.3 KB
- Stars: 1,335
- Watchers: 3
- Forks: 2,760
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-cloudflare - cloudflare-docker-proxy - docker-proxy 的项目,这是一个在 Cloudflare Worker 上运行的 Docker Hub 注册代理. | |维护中| (加速)
README
# cloudflare-docker-proxy
![deploy](https://github.com/ciiiii/cloudflare-docker-proxy/actions/workflows/deploy.yaml/badge.svg)
[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/ciiiii/cloudflare-docker-proxy)
> If you're looking for proxy for helm, maybe you can try [cloudflare-helm-proxy](https://github.com/ciiiii/cloudflare-helm-proxy).
## Deploy
1. click the "Deploy With Workers" button
2. follow the instructions to fork and deploy
3. update routes as you requirement[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/ciiiii/cloudflare-docker-proxy)
## Routes configuration tutorial
1. use cloudflare worker host: only support proxy one registry
```javascript
const routes = {
"${workername}.${username}.workers.dev/": "https://registry-1.docker.io",
};
```
2. use custom domain: support proxy multiple registries route by host
- host your domain DNS on cloudflare
- add `A` record of xxx.example.com to `192.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
```javascript
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",
};
```