aws / containers-roadmap

This is the public roadmap for AWS container services (ECS, ECR, Fargate, and EKS).
https://aws.amazon.com/about-aws/whats-new/containers/
Other
5.16k stars 311 forks source link

[ECR] [BUG]: pull through cache doesn't support image with / in the name #2354

Closed tuotempo closed 2 weeks ago

tuotempo commented 2 weeks ago

Community Note

Tell us about your request Pull through cache doesn't support image with / in the name so we can't cache some images from docker hub

Which service(s) is this request for? ECR

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? Pull through cache doesn't support image with / in the name so we can't cache some images from docker hub. Example of pull that fail: docker pull <awsid>.dkr.ecr.eu-west-1.amazonaws.com/docker-hub/library/percona/percona-xtradb-cluster-operator:1.14.0 Error response from daemon: pull access denied for <awsid>.dkr.ecr.eu-west-1.amazonaws.com/docker-hub/library/percona/percona-xtradb-cluster-operator, repository does not exist or may require 'docker login': denied: The authentication to the upstream registry failed. Verify that the credentials provided in the pull through cache rule are correct, and try again. Are you currently working around this issue? Actually i need to create manually the repository into ECR and push also manually the image to create the cache

tuotempo commented 2 weeks ago

Sorry, i have found that the problem was the library path. So if you want to use other repo you need only to omit /library, in my case the correct path is: <awsid>.dkr.ecr.eu-west-1.amazonaws.com/docker-hub/percona/percona-xtradb-cluster-operator:1.14.0