GoldieLocks
GoldieLocks

Reputation: 933

AWS Fargate "CannotPullContainerError failed to extract layer"

I'm attempting to start an ECS Task using an image in our ECR yet it doesn't start, I get the below error:

CannotPullContainerError: containerd: pull command failed: time="2021-08-10T13:12:24Z" level=info msg="apply failure, attempting cleanup" error="failed to extract layer sha256:e5b96[snip]8caa: link /var/...

All other examples of this error online seem to have a 'not found' element to them.. mine doesn't and I'm kind of lost for why it isn't working.

Any ideas?

Upvotes: 5

Views: 2597

Answers (1)

GoldieLocks
GoldieLocks

Reputation: 933

Turns out that this is caused as I was trying to run a Windows container in Fargate, and that apparently isn't supported:

Windows containers are only supported for tasks that use the EC2 launch type. The Fargate launch type isn't currently supported for Windows containers.

Quote from: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_Windows.html

Upvotes: 4

Related Questions