Unable to run ECS Task using image from ECR

1

Hello all,

I have an image in ECR which I'm attempting to run an ECS container for in Fargate. However, it doesn't work and always fails with:

CannotPullContainerError: containerd: pull command failed: time="2021-08-11T10:51:33Z" level=info msg="apply failure, attempting cleanup" error="failed to extract layer sha256:e5b9632d4...2a9c38caa: link /var/...

I cannot see any more to this error so unsure what else it says. Someone suggested CloudTrail but no errors appear in there, only calls to GetAuthorizationToken, BatchGetImage, and GetDownloadUrlForLayer loads of times. Interestingly, the SHA doesn't match any of the SHAs from ECR.

I have setup permissions in ECR so that the Role which ECS is using should be able to read the image.

I can successfully run the exact same setup against a docker image from the standard docker repository (mariadb:latest for example) and that works fine.

Please help! Thanks in advance

Edited by: GoldieLocks on Aug 11, 2021 4:23 AM to add more clarity.

Edited by: GoldieLocks on Aug 11, 2021 4:24 AM

demandé il y a 3 ans383 vues
2 réponses
0

Turns out Windows containers are not supported on fargate.

répondu il y a 3 ans
0

Recently been added for support on Fargate.

profile picture
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions