You can package a lambda as a container image, but lambda doesn’t itself run the container like it would in dockerd or kube etc, it’s just a packaging mechanism I believe.
The biggest difference is that you have to use a lambda compatible entrypoint that basically communicates with AWS receiving the input and returning the output.
Can't you code one yourself?
For sure. I have a couple of non-standard OpenJDK containers for Lambda. But it isn't like you just use a random container. It has to be custom setup for AWS Lambda for it to work.
Interesting... That seems to defeat the entire purpose of a container if it's just a fancy tar.gz