A simple hub.docker.com proxy on cloudflare worker
- Deploy the
worker.jsto your Cloudflare Workers - Update the domain constants in
worker.jswith your domains - Bind custom domains to your Worker:
your-domain.com(base registry domain)auth-your-domain.com(authentication domain)production-your-domain.com(CDN domain)
Configure your Docker client to use your proxy domains instead of Docker Hub directly.
const BASE_DOMAIN = "your-domain.com";
const AUTH_DOMAIN = "auth-" + BASE_DOMAIN;
const CDN_DOMAIN = "production-" + BASE_DOMAIN;This project is open-sourced under the Apache-2.0 license.