AWS ECR authentication persistance

I'm succesfully looging into my ECR repository by entering: * Repository name: The name of my docker image. * Username: AWS (by default). * Password: Obtained by ssh-ing into the VPS and running aws ecr get-login-password --region [MY_REGION]. * Registry URL: The URL to the registry: <aws_account_id>.dkr.ecr.<region>.amazonaws.com However, the token passed in the password, lasts only 12 hours. After some research, I installed and configured https://github.com/awslabs/amazon-ecr-credential-helper. I can pull images while ssh, but not from within Dockploy Registry. It'slike it's trying to pull images differently. Any help?
3 Replies
planttdev
planttdevOP4mo ago
I've solved it by ssh-ing into the docker container, and installing this https://github.com/awslabs/amazon-ecr-credential-helper inisde.
GitHub
GitHub - awslabs/amazon-ecr-credential-helper: Automatically gets c...
Automatically gets credentials for Amazon ECR on docker push/docker pull - awslabs/amazon-ecr-credential-helper
Edca3899
Edca38992mo ago
@planttdev were you able to trigger a deployment from an ecr private registry?
planttdev
planttdevOP2mo ago
hi! yes, i somehow managed to installed it, but moved away to build my self hosted container registry.

Did you find this page helpful?