✨ a simple hub.docker.com proxy on cloudflare worker ✨
-
After logging into your Cloudflare account, navigate to the Workers Dashboard.
-
Click the "Create a Worker" button to start setting up a new Worker.
📝 Locate the worker.js
file in this repository.
- Paste all the code from
worker.js
into Cloudflare Workers' online editor.
🚀 Once you've confirmed the code is correct in the editor, hit the "Save & Deploy" button.
- Upon successful deployment, you'll receive a unique Worker URL, like
https://your-worker-name.workers.dev
, which can then be used to proxy Docker Hub.
💡 To access or pull Docker images through this proxy, simply replace the Docker Hub address with your Worker URL.
For instance, the typical Docker pull command:
docker pull nginx:latest
Should be changed to:
docker pull your-worker-name.workers.dev/amd64/nginx:latest
This project is open-sourced under the Apache-2.0 license
.