Hi all,
I'm trying to run tasks in the Autoscaler using my docker image that sits in AWS ECR, and I'm having authentication credentials issues.
I want to clone an existing task and run it using the Autoscaler.
I created a docker image, which sits in AWS ECR, and I put it in an Autoscaler instance.
After I enqueue the task's clone to the Autoscaler, I get this error:
"docker: Error response from daemon: Head "https://<account-id>.dkr.ecr.<region>. amazonaws.com/v2/ml_engineering/manifests/latest ": no basic auth credentials." (replace <> vars with the actual values).
The task is running "docker run -t ..." (there's a long execution line in the task's console), and if I understand correctly, I think I need it to run this:
"aws ecr get-login-password --region <your-region> | docker login --username AWS --password-stdin <account-id>.dkr.ecr.<region>. amazonaws.com " before the "docker run" command, so it'll set up the credentials.
Is that true? And if it is, how can I do that? Everything happens automatically after I provide my docker image in the Autoscaler creation.
If it isn't true, how can I fix the error above? When creating the autoscaler instance, I set the AWS credentials, and I thought it'll let them know how to access the docker image.
Thank you in advance.