Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to run docker image/DockerFile on AWS Lambda?

I want to deploy a docker image with my given Dockerfile that executes a program on the AWS Lambda cloud. I know it is possible for EC2 but I want to use AWS Lambda. Anyone have references or know if it is possible?

I was looking at the AWS Elastic Beanstalk as well that has docker capabilities, but it seems it is for web applications? My program that i'm trying to execute on the cloud is NOT a web application.

like image 696
tnet Avatar asked Jun 03 '18 19:06

tnet


People also ask

Can we run Docker image on AWS Lambda?

Image types You can use an AWS provided base image or an alternative base image, such as Alpine or Debian. Lambda supports any image that conforms to one of the following image manifest formats: Docker image manifest V2, schema 2 (used with Docker version 1.10 and newer)

How do I run AWS Lambda locally Docker?

Putting it to run: On your terminal, access the project's root folder where Dockerfile is. Then run the following command: docker build -t my-local-lambda . At this time, our service will be running and waiting for requests at the localhost:9000.

Is AWS Lambda the same as Docker?

AWS Lambda's support for programming languages is limited to the languages for which it defines an integration API. Docker, meanwhile, can host any language or framework that can run on a Dockerized Linux or Windows operating system.


1 Answers

This has just been announced and it is now possible to run Docker inside of Lambda here is the link for the announcement:

https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/

Lambda Container Example

like image 180
Brad McCoy Avatar answered Sep 20 '22 20:09

Brad McCoy