2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
I found the answer, the task definition was referencing 'LATEST' image tag instead of the version number. Going to look into having the image push to ECR with 'Latest' as the tag so I don't have to update the Task definition everytime I update the container.
답변함 일 년 전
0
First, please review the following documents.
https://repost.aws/knowledge-center/ecs-pull-container-api-error-ecr
https://repost.aws/knowledge-center/ecs-fargate-pull-container-error
Other than the above, it has been my experience that increasing the memory capacity of the task definition has solved that error, so please try it.
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전
Riku, thank you for your comment. So I followed those items, and one thing that I was missing was the endpoints and correct security group being attached to the VPC. I also edited the security group to accept all inbound and outbound connections for all ports, types and protocols and destination 0.0.0.0/0... The image is only 256 mb, and the task def calls for 3 GB, but I increased to 4 GB since you mentioned memory.
Still unable to pull the image, though I get a different error: Rather than reference the URI, it just says the image 'is not found'.
Just for fun I tried running the task via Fargate v1.3 -> error there is basically the same.
The image is in a private repo in my ECR, does that matter?