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

已提問 3 年前檢視次數 377 次
2 個答案
0

Turns out Windows containers are not supported on fargate.

已回答 3 年前
0

Recently been added for support on Fargate.

profile picture
已回答 2 年前

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

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

回答問題指南