【发布时间】:2020-11-26 11:18:10
【问题描述】:
我正在为 CI/CD 使用 Azure DevOps 管道。我正在尝试 Dockerize 并将我的 docker 映像推送到 AWS ECR。我已经在 Azure Devops 上添加了 Docker Registry(并且可以访问所有管道),我创建并使用了带有 AdministrativeAccess 的 IAM 用户,并向 Azure Devops 添加了凭据。但是,在我的 Docker Push 任务中,我收到了 unauthorized: authentication required 错误并且我的工作失败了。
这是我的推送任务
- task: Docker@2
displayName: "PUSH IMAGE TO AWS"
inputs:
containerRegistry: AWS
repository: $(DOCKER_REPOSITORY_NAME)
command: push
enabled: true
【问题讨论】:
-
您好,您有机会查看以下解决方案吗?进展如何?
-
好的,非常感谢。正如你所说,我已经弄清楚添加新任务,而不是使用 Docker 推送任务,而是使用 Amazon ECR 推送任务
标签: amazon-web-services azure docker azure-devops amazon-ecr