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

asked 3 years ago376 views
2 Answers
0

Turns out Windows containers are not supported on fargate.

answered 3 years ago
0

Recently been added for support on Fargate.

profile picture
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions