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 Respuestas
1
Respuesta aceptada

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 hace 2 años
  • 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 hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas