AWS“任务的私有注册表身份验证”不起作用

时间:2021-06-06 21:03:38

标签: amazon-web-services github amazon-ecs docker-registry

我尝试按照 this 说明将 ECS 设置为使用 GitHub 私有注册表,但在部署 ECS 任务时不断收到此错误:

Status reason   CannotPullContainerError: Error response from daemon: pull access denied for ghcr.io/a/b/c, repository does not exist or may require 'docker login': denied: permission_denied: The token provided does not match expected s

这里是任务定义中的任务执行角色: enter image description here

这是 IAM 角色本身: enter image description here

但它不起作用。同时 Private registry authentication for container instances 工作正常。有没有人有配置ECS私有注册认证的成功经验?请分享你是如何做到的。在我的案例中我遗漏了什么?

0 个答案:

没有答案