Pulling images from any container registry using Cloudflare Worker.
# Original pull command
docker pull alpine:3.20.2
# Current pull command
docker pull your-domain.com/library/alpine:3.20.2
# Or adding `docker.io`
docker pull your-domain.com/docker.io/library/alpine:3.20.2
# Add your domain prefix to pull from others container registries
docker pull your-domain.com/registry.k8s.io/pause:3.9
docker pull your-domain.com/ghcr.io/fatedier/frps:v0.59.0
docker pull your-domain.com/mcr.microsoft.com/devcontainers/javascript-node:1-18
docker pull your-domain.com/quay.io/prometheus/busybox:latest
docker pull your-domain.com/docker.elastic.co/elasticsearch/elasticsearch:7.17.9
Add your domain to the Docker daemon configuration.
Note
{
"registry-mirrors": ["https://your-domain.com"]
}
This repository is inspired by these projects. Thanks.
- DaoCloud's crproxy
- ciiiii's cloudflare-docker-proxy
- mzzsfy's cf-worker