Authenticate to AWS ECR private repository
Hello, I have my private image on AWS ECR. I have created a new IAM role that can pull that image and I have fulfilled those credentials inside the template.
However, when I run a pod I'm getting some errors:
However, when I run a pod I'm getting some errors:
error pulling image: Error response from daemon: unauthorized: Not Authorized
What's the correct way to pull images form AWS ECR?2 Replies
I got the same issue but with normal Docker ... I feel like most people use runpod to spin up some template :p
error pulling image: Error response from daemon: pull access denied for x, repository does not exist or may require 'docker login':
denied: requested access to the resource is denied
error creating container: unauthorized to use image x
So ecr I think rotates the registry key every 12hrs or so?
And if that's true then you'll need to update it, either manually or automatically to runpod
Using scheduled cron perhaps if you want it automatically, the cron job will request the key rotate or view if possible then set the registry key on runpod via graphql api/ rest api (there's a doc for this)
Some people uses aws ecr too, what's your image tag like?