Related to https://github.com/MicrosoftDocs/vsts-docs/issues/1929. It is said to use the Docker Registry service connection, but it won't work because the token will expire in 12 hrs. The AWS extension provides the ECR pull task, maybe we can make use of that.
⚠ 请勿编辑此部分。 docs.microsoft.com ➟ GitHub 问题链接必须具有此部分。
Any update on using this with containers published to ECR?
@shashankbarsin is there any chance you could help me out here? You're a container guru and I have no experience with ECR.
After doing some research, I see now that Amazon ECR has a proprietary mechanism for getting an auth credential that Docker understands. This means that, without feature work in the Azure Pipelines agent, this likely won't work.
If anyone is keen to have this feature, we accept pull requests on https://github.com/microsoft/azure-pipelines-agent. The work would be in converting an AWS service connection (which contains an access key ID and secret access key) to a Docker login using the details here.
Most helpful comment
Any update on using this with containers published to ECR?