concourse / registry-image-resource

a resource for images in a Docker registry
Apache License 2.0
89 stars 107 forks source link

Public aws ECR is not supported #319

Open cyrilou242 opened 2 years ago

cyrilou242 commented 2 years ago

AWS has introduced public ECR registries. The url is public.ecr.aws/{hash}/repository.

When I don't put the aws prefix (as suggested in doc), I get the following error:

INFO[0002] pushing tag(s) test-tag
ERRO[0003] pushing image failed: pushing tag(s): HEAD https://index.docker.io/v2/library/MY_REPOSITORY/blobs/sha256:48d...: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)  

When I put the full address, I get the following error:

INFO[0003] pushing tag(s) test-tag
ERRO[0003] pushing image failed: pushing tag(s): HEAD https://public.ecr.aws/v2/r5b5q6h9/MY_REPOSITORY/blobs/sha256:86d...: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details) 

Am I missing something? Or is aws public ECR support not implemented?

TechShivvy commented 3 months ago

Hey @cyrilou242, I'm facing the same issue, did you manage to resolve it? Thanks.

cyrilou242 commented 3 months ago

Hey @TechShivvy I did not spent much time on this, we moved away from Concourse for other reasons.