6

AWS Lambda with Docker Container runtime error: “Init failed error=fork/exec /va...

 1 year ago
source link: https://www.kevinhooke.com/2023/02/24/aws-lambda-with-docker-container-runtime-error-init-failed-errorfork-exec-var-runtime-bootstrap/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

AWS Lambda with Docker Container runtime error: “Init failed error=fork/exec /var/runtime/bootstrap”

I’m getting this error when invoking myLambda which is using a Docker container:

Init failed error=fork/exec /var/runtime/bootstrap

To fix this, add a step to make the bootstrap file executable after you copy into the image:

COPY bootstrap ${LAMBDA_RUNTIME_DIR}
RUN chmod +x ${LAMBDA_RUNTIME_DIR}/bootstrap

CategoriesKev's BlogTagsaws, container, docker, lambda

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Comment *

Name *

Email *

Website

Save my name, email, and website in this browser for the next time I comment.

Notify me of follow-up comments by email.

Notify me of new posts by email.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK