Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
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

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.

  
  
Posted 8 days ago
Votes Newest

Answers 7


Yeah I know, I tried it but it didn't solve it...
My question was when exactly does the autoscaler run this script, because it seems like it doesn't run it before the "docker run" script.

  
  
Posted 8 days ago

Its a setting on the autoscaler:
image

  
  
Posted 8 days ago

Yes, here they are

  
  
Posted 8 days ago

@<1523701070390366208:profile|CostlyOstrich36> I tried that, but it still behaves the same. Does this script run before or after the docker run script? I also don’t see it in the tasks log.

  
  
Posted 8 days ago

Hi @<1878975301346660352:profile|DizzyPuppy89> , when you set up the autoscaler, you can provide an init bash script that will run on the EC2 instance before the container is launched

  
  
Posted 8 days ago

It should. Can you provide both the task and machine logs?

  
  
Posted 8 days ago