CI: migrate `ecr.aws` images to GHCR (to avoid the ECR rate limit)

未关闭
#5,293 6 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 2 天内回复

@mainguyen0112 已经在做这个了。

开始于 2026年10月27日。

评估

这个 Issue 还没有评估数据。

描述

area/ci priority/high

https://github.com/containerd/nerdctl/blob/df3d4d44f1062e1afd6c59a73140cb30e531a315/pkg/testutil/images.yaml#L86-L97

CI has been recently failing frequently due to the ECR rate limit

https://github.com/containerd/nerdctl/actions/runs/40471935075/job/122080866973

    container_inspect_linux_test.go:898: 
        
        +------------------------------------------------------------------------------------------------------------+
        | ➡️      | ⚙️ /usr/local/bin/nerdctl build -t testcontainerinspectuser-8d0f9759 /tmp/TestContainerInspectUs |
        |         | er1469321892/001/ab939a5b                                                                        |
        +------------------------------------------------------------------------------------------------------------+
        |         | 🚫 command returned a non-zero exit code                                                         |
        +------------------------------------------------------------------------------------------------------------+
        |         | ⚠️ 1                                                                                             |
        +------------------------------------------------------------------------------------------------------------+
        |         | 🟠 #1 [internal] load build definition from Dockerfile                                           |
        |         | #1 transferring dockerfile: 202B done                                                            |
        |         | #1 DONE 0.0s                                                                                     |
        |         |                                                                                                  |
        |         | #2 [internal] load metadata for public.ecr.aws/docker/library/ubuntu:23.10                       |
        |         | #2 ERROR: failed to copy: httpReadSeeker: failed open: unexpected status from GET request to htt |
        |         | ps://public.ecr.aws/v2/docker/library/ubuntu/manifests/sha256:fd7fe639db24c4e005643921beea92bc44 |
        |         | 9aac4f4d40d60cd9ad9ab6456aec01: 429 Too Many Requests                                            |
        |         | toomanyrequests: Data limit exceeded                                                             |
        |         | ------                                                                                           |
        |         |  > [internal] load metadata for public.ecr.aws/docker/library/ubuntu:23.10:                      |
        |         | ------                                                                                           |
        |         | Dockerfile:2                                                                                     |
        |         | --------------------                                                                             |
        |         |    1 |                                                                                           |
        |         |    2 | >>> FROM public.ecr.aws/docker/library/ubuntu:23.10                                       |
        |         |    3 |     RUN groupadd -r test && useradd -r -g test test                                       |
        |         |    4 |     USER test                                                                             |
        |         | --------------------                                                                             |
        |         | error: failed to solve: public.ecr.aws/docker/library/ubuntu:23.10: failed to resolve source met |
        |         | adata for public.ecr.aws/docker/library/ubuntu:23.10: failed to copy: httpReadSeeker: failed ope |
        |         | n: unexpected status from GET request to https://public.ecr.aws/v2/docker/library/ubuntu/manifes |
        |         | ts/sha256:fd7fe639db24c4e005643921beea92bc449aac4f4d40d60cd9ad9ab6456aec01: 429 Too Many Request |
        |         | s                                                                                                |
        |         | toomanyrequests: Data limit exceeded                                                             |
主要语言
Go
星标
10.5k
派生
839
平均合并
3 天 15 小时
30 天内合并 PR
41

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

containerd/nerdctl 的其他 Issue

查看 containerd/nerdctl 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。