Skip to content

Docker Mirror

HubProxy implements Docker Registry API v2 and can accelerate Docker Hub and multiple third-party registries.

Edit /etc/docker/daemon.json (or Docker Desktop settings on Windows):

{
"registry-mirrors": ["https://example.com"]
}

Restart Docker:

Terminal window
sudo systemctl restart docker
Registry Notes
Docker Hub Default registry-1.docker.io, no path prefix needed
ghcr.io GitHub Container Registry
gcr.io Google Container Registry
quay.io Red Hat Quay
registry.k8s.io Kubernetes official images

Extend or disable in [registries] — see Registry Sources.

Terminal window
# Docker Hub official image (no library prefix needed)
docker pull example.com/nginx
# Docker Hub user image
docker pull example.com/user/app:tag
# Third-party registry (path includes registry domain)
docker pull example.com/ghcr.io/owner/image:tag

The library/ namespace is added automatically for official images, and latest is used when no tag is given — example.com/nginx is equivalent to example.com/library/nginx:latest.

The web UI (enableFrontend = true) provides Docker Hub search and tag browsing. API access:

Terminal window
curl "https://example.com/api/search?q=nginx"
curl "https://example.com/api/tags/library/nginx"
  • Each layer counts against rate limits
  • Configure [access].whiteList for public deployments
  • Ensure correct client IP behind reverse proxy — see Reverse Proxy
  • Anonymous upstream pulls — private authenticated images cannot be pulled through HubProxy