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
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南