ResourceInitializationError: unable to pull secrets or registry auth: pull command failed: : signal: killed

0

I have created an Image in ECR, also created Fargate cluster and when I am defining task using hypens (-) for pulling ECR image e.g. 0000-0000-00000..dkr.ecr.ap-south-1.amazonaws.com/liferay:latest, I am getting ResourceInitializationError: unable to pull secrets or registry auth: pull command failed: : signal: killed. 2nd scenario while I am defining Task for pulling ECR Image without hypen (-) 0000000000000..dkr.ecr.apsouth1.amazonaws.com/liferay:latest, I am getting below error CannotPullContainerError: inspect image has been retried 5 time(s): failed to resolve ref "000000000000.dkr.ecr.ap.south.1.amazonaws.com/liferay:latest": failed to do request: Head https://000000000000.dkr.ecr.ap.south.1.amazonaws.com/v2/liferay/manife...

Is Fargate not accepting hypens in Image name ?? or how to resolve, since Account Number and Regions contains hypen(s)

2 Answers
1
Accepted Answer

The correct domain for ECR is https://aws_account_id.dkr.ecr.region.amazonaws.com where the aws_account_id doesn't contain hyphens, and the region does. So for example, if you account ID is 123456789012 and the region is ap-south-1, the domain would be https://123456789012.dkr.ecr.ap-south-1.amazonaws.com https://docs.aws.amazon.com/AmazonECR/latest/userguide/Registries.html

If you go to the ECR repo in the AWS console you should see the actual URL to pull images

Miki
answered 2 years ago
  • using 123456789012.dkr.ecr.ap-south-1.amazonaws.com in Image worked... thanks and appreciate Miki

0

For reference, use this Knowledge Center article on troubleshooting this error here.

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions

Relevant content