Enabling custom docker images for lambda #251
-
|
based on the response to this issue: #165 (comment), I am trying to emulate a lambda based on a docker image. my host machine is Windows, I am running Docker Desktop, and I have added volumes:
- //var/run/docker.sock:/var/run/docker.sockto my docker compose file
as an experiment, i tried configuring the lambda with public image uri is there some configuration i'm missing to make this work? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
this is less pressing for me now that #256 adds support for dotnet runtime, but i am still interested to know |
Beta Was this translation helpful? Give feedback.
-
|
Hi @bkindersleytrulioo, How it works
Requirements
Your two original scenarios Local image (my-image:latest) — works on Linux/macOS via the shared Docker socket. On Windows Docker Desktop the |
Beta Was this translation helpful? Give feedback.
Hi @bkindersleytrulioo,
Thanks for you patient.
How it works
CreateFunction with PackageType=Image always succeeds, no Docker operation happens at creation time. The image is resolved lazily on the first invocation:
Requirements
public.ecr.aws/lambda/python:3.12include this out of th…