RepositoryGoCNChina
TO

togettoyou/hub-mirror

🚀 Docker 镜像代理,通过 GitHub Actions 将 docker.io、gcr.io、registry.k8s.io、k8s.gcr.io、quay.io、ghcr.io 等国外镜像转换为国内镜像加速下载

1.2kstars
805forks
1issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: gcr-registry

#1 Repository of the month

1
TINIX TRENDING·Topic: docker-image

#1 Repository of the month

1
TINIX TRENDING·Topic: docker-registry

#1 Repository of the month

hub-mirror

使用国内镜像仓库来提供(但不限于) docker.io、gcr.io、registry.k8s.io、k8s.gcr.io、quay.io、ghcr.io 等国外镜像加速下载服务

示例:https://github.com/togettoyou/hub-mirror/issues/2816

gopher云原生公众号二维码

👆 扫码或搜索关注公众号:gopher云原生

使用流程

1️⃣ Fork 本项目

Fork 该项目,后续所有操作都在你 Fork 的仓库中进行。

2️⃣ 绑定账号

  • 进入 Settings → Secrets and variables → Actions

  • 选择 New repository secret,并添加以下 Secrets:

    • DOCKER_USERNAME:镜像仓库登录名
    • DOCKER_TOKEN:镜像仓库密码
    • DOCKER_REPOSITORY:镜像仓库地址

其中 DOCKER_REPOSITORY 示例:

  • 腾讯云: ccr.ccs.tencentyun.com/[namespace]
  • 阿里云: registry.cn-hangzhou.aliyuncs.com/[namespace]

例如我的是:registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou

🔹 示例截图

阿里云镜像仓库

Secrets 配置示例

3️⃣ 开启 Issues 功能

  • 进入 Settings → General → Features
  • 启用 Issues

🔹 示例截图

开启 Issues

4️⃣ 配置 Actions 权限

  • 进入 Settings → Actions → General
  • 在 Workflow permissions 选项中,选择:
    • ✅ Read and write permissions

🔹 示例截图

修改 Actions 权限

5️⃣ 添加 Issue Labels

  • 进入 Issues → Labels

  • 点击 New label

  • 依次添加以下 Labels:

    • hub-mirror
    • success
    • failure

🔹 示例截图

添加 Labels

6️⃣ 启用 Actions Workflow

  • 进入 Actions
  • 选择 hub-mirror
  • 在右上角 ··· 菜单中选择 Enable Workflow

🔹 示例截图

启用 Workflow

7️⃣ 提交 Issue 触发同步

  • 在 Fork 的仓库 Issues 页面,点击 New issue
  • 选择 hub-mirror 模板,填写所需信息并提交

🔹 示例截图

提交 Issue

Similar Projects

Discover other similar projects and AI models.

RepositoryJavaScript
dqzboy/Docker-Proxy

自建 Docker 镜像加速与管理服务。零磁盘缓存、可视化面板、支持上游账号认证,支持一键部署Docker、K8s、Quay、Ghcr、Mcr、elastic、nvcr等镜像加速

4.5k
Nov 10, 2026
RepositoryGo
uber/kraken

P2P Docker registry capable of distributing TBs of data in seconds

6.8k
Dec 1, 2026
RepositoryGo
AliyunContainerService/image-syncer

Docker image synchronization tool for Docker Registry V2 based services

1.0k
Feb 5, 2025
RepositoryTypeScript
docker/build-push-action

GitHub Action to build and push Docker images with Buildx

5.4k
Nov 27, 2026
RepositoryShell
kubesre/docker-registry-mirrors

多平台容器镜像代理服务,支持 Docker Hub, GitHub, Google, k8s, Quay, Microsoft 等镜像仓库.

1.6k
Dec 2, 2025
RepositoryTypeScript
docker/login-action

GitHub Action to login against a Docker registry

1.5k
Nov 23, 2026
RepositoryShell
kspeeder/docker_kspeeder

Docker镜像加速专家 多镜像并发下载,动态负载均衡,断点续传支持,Docker镜像代理服务

321
Nov 18, 2026
RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

315.1k
Dec 1, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026