/cloudflare-dockerhub-proxy

a hub.docker.com proxy on cloudflare worker

Primary LanguageJavaScriptApache License 2.0Apache-2.0

🌩️ Cloudflare Docker Hub Proxy

✨ a simple hub.docker.com proxy on cloudflare worker ✨

δΈ­ζ–‡η‰ˆREADME

πŸ“¦ Usage Instructions

1. Create a Cloudflare Worker

  1. After logging into your Cloudflare account, navigate to the Workers Dashboard.

  2. Click the "Create a Worker" button to start setting up a new Worker.

2. Copy JavaScript

πŸ“ Locate the worker.js file in this repository.

  1. Paste all the code from worker.js into Cloudflare Workers' online editor.

3. Deploy the Worker

πŸš€ Once you've confirmed the code is correct in the editor, hit the "Save & Deploy" button.

  1. 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.

πŸ”„ How to Use the Proxy

πŸ’‘ 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

πŸ“– License

This project is open-sourced under the Apache-2.0 license.