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年前358ビュー
2回答
0

Turns out Windows containers are not supported on fargate.

回答済み 3年前
0

Recently been added for support on Fargate.

profile picture
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ