Depends on your use case (shocking, I know). If you already have a build pipeline for docker images and you aren’t worried about the whole “images take longer durrr” FUD it makes sense to build images. They are easier for developers to reason about, use, maintain, etc. That being said, there are very likely performance gains to be had in choosing zip files over images. Otherwise there wouldn’t be so many posts/comments about it. Answer from Deleted User on reddit.com
🌐
Sixfeetup
sixfeetup.com › blog › secrets-of-building-python-container-images-for-aws-lambda
Secrets of Building Python Container Images for AWS Lambda
August 12, 2021 - When building container images for their apps, developers tend to use a common base image such as debian:buster, ubuntu:20.04 — or language-targeted base images such as python:3.10.0rc1-slim-buster. A container image intended for use with AWS Lambda can use these base images, but there are very specific assumptions that the Lambda service makes which need to be taken into account.
Discussions

AWS Lambda: Package as Docker container or zip+Lambda layer?
Depends on your use case (shocking, I know). If you already have a build pipeline for docker images and you aren’t worried about the whole “images take longer durrr” FUD it makes sense to build images. They are easier for developers to reason about, use, maintain, etc. That being said, there are very likely performance gains to be had in choosing zip files over images. Otherwise there wouldn’t be so many posts/comments about it. More on reddit.com
🌐 r/aws
17
7
December 1, 2022
Struggling to Deploy Docker Image to AWS Lambda: Image Manifest Issues
Why aren't you using IaC? https://docs.aws.amazon.com/cloudshell/latest/userguide/tutorial-docker-cdk-deploy.html More on reddit.com
🌐 r/aws
14
9
December 15, 2024
🌐
ECR Public Gallery
gallery.ecr.aws › lambda › provided
AWS Lambda/provided - Amazon ECR Public Gallery
Amazon ECR Public Gallery is a website that allows anyone to browse and search for public container images, view developer-provided details, and see pull commands
🌐
Qloudx
qloudx.com › running-container-images-as-lambda-functions-on-aws
Running Container Images as Lambda Functions on AWS – QloudX
AWS Lambda, one of the key services provided by Amazon Web Services (AWS), allows developers to run code without the need to provision or manage servers. While Lambda has traditionally supported running code in various programming languages, AWS has recently introduced the ability to run container images as Lambda functions.
🌐
Duplocloud
docs.duplocloud.com › docs › automation-platform › overview › aws-services › lambda › create-lambda-using-container-image
Configure Lambda with Container Images | DuploCloud Documentation
The process involves building the container image, storing it in Amazon Elastic Container Registry (ECR), and configuring Lambda to use the image for function execution. Create and Build your Lambda code using DockerFile.
Find elsewhere
🌐
LinkedIn
linkedin.com › pulse › package-aws-lambda-functions-container-images-ravi-intodia
Package AWS Lambda functions as container images
October 19, 2021 - With AWS Lambda, clients upload their code and let it run without having to worry about servers. Many enterprises like how this works, but if they have invested in container tools for their development workflows, it's not easy to apply the same approach to designing applications using Lambda. To make this easier, you can now bundle and deploy Lambda functions as container images up to 10 GB in size.
🌐
Chariot Solutions
chariotsolutions.com › home › getting started with lambda container images
Getting Started with Lambda Container Images — Chariot Solutions
February 16, 2022 - I’m sure that solved some class of problems, but I never ran into one of them. Lambda Container Images let you deploy arbitrary code into a Lambda runtime, again with the caveat that it has to interact with the Runtime API.
🌐
NetApp
netapp.com › home › learn › aws-cvo-blg-aws-lambda-images-how-to-use-container-images-to-deploy-lambda
AWS Lambda Images: How to Use Container Images to Deploy Lambda | NetApp
December 24, 2025 - When creating a Lambda function, AWS supports the use of a container image as the deployment package. With this functionality, you can use the Lambda API or the Lambda console to create a function that is defined by the container image.
🌐
AWS
aws.amazon.com › blogs › compute › modernizing-deployments-with-container-images-in-aws-lambda
Modernizing deployments with container images in AWS Lambda | Amazon Web Services
November 19, 2021 - This post is written by Joseph Keating, AWS Modernization Architect, and Virginia Chu, Sr. DevSecOps Architect. Container image support for AWS Lambda enables developers to package function code and dependencies using familiar patterns and tools.
🌐
Microsoft Azure
azure.microsoft.com › en-us › pricing › calculator
Pricing Calculator | Microsoft Azure
Configure and estimate the costs for Azure products and features for your specific scenarios.
🌐
Reddit
reddit.com › r/aws › struggling to deploy docker image to aws lambda: image manifest issues
r/aws on Reddit: Struggling to Deploy Docker Image to AWS Lambda: Image Manifest Issues
December 15, 2024 -

Hi everyone,

I'm trying to deploy a Docker container to AWS Lambda, but I keep running into issues with the image manifest format. Specifically, I receive the error:

"The image manifest or layer media type for the source image is not supported."

What I've Done So Far

  1. Dockerfile Setup: My Dockerfile uses the AWS Lambda Python 3.12 base image:FROM COPY requirements.txt . RUN pip install -r requirements.txt -t /var/task COPY /var/task CMD ["main.lambda_handler"] public.ecr.aws/lambda/python:3.12main.py

  2. Build and Push Process:

    • I built the image using:docker buildx build --platform linux/amd64 -t marketdatafetcher:latest . docker tag marketdatafetcher:latest 585768148898.dkr.ecr.eu-north-1.amazonaws.com/marketdatafetcher:latest docker push 585768148898.dkr.ecr.eu-north-1.amazonaws.com/marketdatafetcher:latest

    • Checked the pushed image in ECR, and the manifest type is application/vnd.oci.image.index.v1+json.

  3. Tried Docker Save and Reload: I attempted to re-save the image to convert the manifest:However, the manifest remains as application/vnd.oci.image.index.v1+json.docker save marketdatafetcher:latest -o marketdatafetcher.tar docker load -i marketdatafetcher.tar docker tag marketdatafetcher:latest docker push 585768148898.dkr.ecr.eu-north-1.amazonaws.com/marketdatafetcher:latest585768148898.dkr.ecr.eu-north-1.amazonaws.com/marketdatafetcher:latest

  4. Environment Details:

    • Docker Version: 27.4.0 on Windows with Docker Desktop.

    • AWS CLI and IAM setup are configured correctly.

    • Using aws ecr to manage the repository.

  5. Validation:

    • I can inspect the manifest using docker manifest inspect.

    • Despite following recommendations to re-tag and push, the manifest type does not change to the required application/vnd.docker.distribution.manifest.v2+json.

What I Need Help With

  1. How can I force Docker to produce a compatible manifest (v2 format) for AWS Lambda?

  2. Are there alternative approaches or tools I should try to fix this issue?

  3. Has anyone successfully deployed a container with a similar setup and can share their steps?

Any guidance or suggestions would be greatly appreciated! Thank you in advance for your help! 😊

🌐
Seifrajhi
seifrajhi.github.io › home › blog › how to package and deploy a lambda function as a container image
How to Package and Deploy a Lambda Function as a Container Image - Blog by Saifeddine Rajhi
October 27, 2024 - How to package and deploy AWS Lambda functions as container images, enabling greater flexibility and customization beyond built-in runtimes.
🌐
AWS
aws.amazon.com › blogs › containers › containerizing-lambda-deployments-using-oci-container-images
Containerizing Lambda deployments using OCI container images | Amazon Web Services
April 16, 2021 - Developers can now choose to take advantage of the event-driven runtime model and cost-savings advantages of AWS Lambda, while taking advantage of the predictability and control offered by a container-based development and deployment cycle. Lambda functions built with containers have an architecture extremely similar to other Lambda functions. The key difference is that the Lambda process is managed by a running container pulled from an OCI container image in Amazon ECR.
🌐
DEV Community
dev.to › eoinsha › container-image-support-in-aws-lambda-deep-dive-2keh
Container Image Support in AWS Lambda Deep Dive - DEV Community
December 8, 2020 - Today, the arrival of Container Image support for Lambda makes it possible to use actual Docker/OCI container images up to 10GB in size as the code and runtime for a Lambda function. But what about Fargate?! Wasn’t that supposed to be the serverless container service in AWS?
🌐
Medium
aws.plainenglish.io › aws-lambda-container-image-a5eab06a445
What is AWS Lambda Container Image? | by Oussema Miled | AWS in Plain English
September 24, 2021 - Now with LCI, we can package our Lambda function and the needed dependencies in an image using Docker CLI for example. Then we upload that image to AWS ECR (Elastic Container Registry).
🌐
Hevo
hevodata.com › home › learn › aws
AWS Lambda Docker Image: An Easy Guide
January 11, 2026 - With high scalability, fault tolerance infrastructure, and pay-per-value services pricing model, AWS Lambda, with its latest support — AWS Lambda Docker Image — now caters to a broader audience of developers, helping them build serverless apps for on-demand image processing and much more.