Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hub-mirror] 请求执行任务docker.io/mlikiowa/napcat-docker #3341

Open
Lanye-z opened this issue Nov 22, 2024 · 1 comment
Open

[hub-mirror] 请求执行任务docker.io/mlikiowa/napcat-docker #3341

Lanye-z opened this issue Nov 22, 2024 · 1 comment
Labels
hub-mirror 触发 workflow 的必选条件 success workflow 执行成功

Comments

@Lanye-z
Copy link

Lanye-z commented Nov 22, 2024

{
"platform":"",
"hub-mirror": [
"若对OS/ARCH无要求,platform请留空,不要加任何值,默认就是linux/amd64",
"如需切换arm架构,请修改platform为arm64或linux/arm64/v8",
"格式:你需要转换的原始镜像$自定义镜像名:自定义标签名 (其中 $自定义镜像名:自定义标签名 是可选的)",
"以下是三个正确示例",
"registry.k8s.io/kube-apiserver:v1.27.4",
"registry.k8s.io/kube-apiserver:v1.27.4$my-kube-apiserver",
"registry.k8s.io/kube-apiserver:v1.27.4$my-kube-apiserver:mytag",
"要求:hub-mirror 标签是必选的,标题随意,内容严格按照该 json 格式,每次最多支持转换 11 个镜像",
"错误的镜像都会被跳过",
"请确保 json 格式是正确的,比如下面这个是最后一个,后面是没有逗号的",
"好了,改成你想要转换的镜像吧"
]
}

@Lanye-z Lanye-z added the hub-mirror 触发 workflow 的必选条件 label Nov 22, 2024
Copy link

docker 版本

docker pull registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou/registry.k8s.io.kube-apiserver:v1.27.4 && docker tag registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou/registry.k8s.io.kube-apiserver:v1.27.4 registry.k8s.io/kube-apiserver:v1.27.4
docker pull registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou/my-kube-apiserver:mytag && docker tag registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou/my-kube-apiserver:mytag registry.k8s.io/kube-apiserver:v1.27.4
docker pull registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou/my-kube-apiserver:v1.27.4 && docker tag registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou/my-kube-apiserver:v1.27.4 registry.k8s.io/kube-apiserver:v1.27.4

containerd 版本(以 k8s.io namespaces 为例)

ctr -n k8s.io image pull registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou/registry.k8s.io.kube-apiserver:v1.27.4 && ctr -n k8s.io image tag registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou/registry.k8s.io.kube-apiserver:v1.27.4 registry.k8s.io/kube-apiserver:v1.27.4
ctr -n k8s.io image pull registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou/my-kube-apiserver:mytag && ctr -n k8s.io image tag registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou/my-kube-apiserver:mytag registry.k8s.io/kube-apiserver:v1.27.4
ctr -n k8s.io image pull registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou/my-kube-apiserver:v1.27.4 && ctr -n k8s.io image tag registry.cn-hangzhou.aliyuncs.com/hubmirrorbytogettoyou/my-kube-apiserver:v1.27.4 registry.k8s.io/kube-apiserver:v1.27.4

@github-actions github-actions bot added the success workflow 执行成功 label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hub-mirror 触发 workflow 的必选条件 success workflow 执行成功
Projects
None yet
Development

No branches or pull requests

1 participant