Segmentation fault when running wine on AWS Lambda container

0

I have this docker file that displays the wine version:

FROM electronuserland/builder:wine

ENTRYPOINT [ "wine", "--version" ]

When running this on my local docker, it returns the version of wine.

>> docker build -t wine-version .
>> docker run wine-version
>> wine-7.0

but when I uploaded it to AWS ECR and use it as my lambda function container, it printed exited with error: signal: segmentation fault Arch: x86_64

Expectation: wine version should be printed on the logs.

START RequestId: bc7b454b-22c9-4373-aaa3-091c8c4fa17c Version: $LATEST
END RequestId: bc7b454b-22c9-4373-aaa3-091c8c4fa17c
REPORT RequestId: bc7b454b-22c9-4373-aaa3-091c8c4fa17c	Duration: 4.32 ms	Billed Duration: 5 ms	Memory Size: 128 MB	Max Memory Used: 3 MB	
RequestId: bc7b454b-22c9-4373-aaa3-091c8c4fa17c Error: Runtime exited with error: signal: segmentation fault
Runtime.ExitError
  • Were you able to run wine using AWS lambda runtime set up?

1개 답변
1

You cannot run any docker container as a lambda function.

The docker container has to have either an AWS provided runtime or if you are creating a custom image, then you have to use the open source Lambda Runtime Interface Clients.

Another requirement is that the container image should have lambda code in the format that lambda expects the code to be in.

Have these requirements been met in the container image that you are trying to run as a lambda function?

If you want to learn more about how to run a container image in a lambda function, I will highly recommend this blog - https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/

profile pictureAWS
전문가
답변함 2년 전

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

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

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

관련 콘텐츠