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 Respostas
1
Resposta aceita

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
respondido há 2 anos
  • 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
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas