Giter Club home page Giter Club logo

image-mirror's Introduction

image-mirror

workflow build Version License

image-mirror 是一个帮助加速下载某些难以下载的镜像的工具,可以加速下载各国外大厂的某些无法下载的镜像

Features

  • 支持公网所有基于Docker Registry V2搭建的docker镜像仓库同步
  • 基于上一条,除了gcr.io , k8s.gcr.io , registry.k8s.io , quay.io, ghcr.io仓库可以加速外,公网的公开仓库大概都可以
  • ...

使用

fork 使用(推荐)

  • 广而告之: 阿里云目前提供个人版镜像仓库,限额3namespace,300个镜像。对于个人足够用了,所以我个人推荐是fork使用,把镜像同步到自己的个人仓库,自己个人镜像也可以'push'到上面
  1. fork 本仓库,然后在仓库设置中打开issue功能
  2. 设置自己的目标仓库信息
    image image 比如我们要同步一个外部镜像到registry.cn-hangzhou.aliyuncs.com/imdingtalk/kube-apiserver:v1.27.12

需要设置一些变量 variables

  • TARGET_NAMESPACE: 目标NAMESPACE,该例子中应该设置为imdingtalk
  • TARGET_REGISTRY: 目标仓库,该例子中应该设置为registry.cn-hangzhou.aliyuncs.com
  • TARGET_REGISTRY_USER: 目标仓库的用户名
    一些secrets
  • TARGET_REGISTRY_PASSWORD: 目标仓库的密码,暂不支持特殊字符

该例子中,需要确保使用目标仓库的用户名和密码,使用命令 docker login registry.cn-hangzhou.aliyuncs.com能够成功登录
4. 按照直接使用的方式在自己的仓库提交issue

直接使用

提交一个issue即可,issue内容为你无法正常下载的镜像,示例如下:
image

image

就会出发GitHub action,同步镜像到 registry.cn-hangzhou.aliyuncs.com(默认同步到imdingtalkNAMESPACE下)

GitHub action bot会在action完成后,提示同步成功的镜像

Tools

  • image-syncer 是一个docker镜像同步工具,可用来进行多对多的镜像仓库同步,支持目前绝大多数主流的docker镜像仓库服务

image-mirror's People

Contributors

imdingtalk avatar mdhb0546 avatar duaka avatar

image-mirror's Issues

sig-storage

registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.10.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.