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개 답변
1
수락된 답변

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
답변함 2년 전
  • 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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인