0

My own image public.ecr.aws/f6q1r4v8/amazonlinuxwithshell:latest fails to start on AWS (FARGATE) in a very weird way:

Last status Stopped

Stopped reason CannotPullContainerError: inspect image has been retried 5 time(s): failed to resolve ref "public.ecr.aws/f6q1r4v8/amazonlinuxwithshell:latest": failed to do request: Head https://public.ecr.aws/v2/f6q1r4v8/amazonlinuxwithshell/manifests/latest: dial t...

Note that awslogs remain empty (despite with an earlier version of my image they were not empty).

What's wrong, how to make it work?

10
  • The message is cut off at the end. Please post the complete message. Commented Aug 1, 2021 at 16:06
  • @MichaelHampton No way, it is the only what AWS shows me.
    – porton
    Commented Aug 1, 2021 at 16:50
  • It does not work when there is no public instance IP... Why? That's a weird Amazon's bug.
    – porton
    Commented Aug 1, 2021 at 20:18
  • @porton the infrastructure needs to go out to the public ECR endpoint to pull the image. This could only happen if your task is private and you have a way to route out to the Internet (e.g. NAT GW) or if your task has a public IP address that can route to the ECR endpoint.
    – mreferre
    Commented Aug 2, 2021 at 7:26
  • @mreferre Amazon should temporarily assign a public IP to such a FARGATE task. Not doing so is a bug.
    – porton
    Commented Aug 4, 2021 at 21:29

0

You must log in to answer this question.

Browse other questions tagged .