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년 전376회 조회
2개 답변
0

Turns out Windows containers are not supported on fargate.

답변함 3년 전
0

Recently been added for support on Fargate.

profile picture
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠