firecracker-microvm / firecracker

Secure and fast microVMs for serverless computing.
http://firecracker-microvm.io
Apache License 2.0
25.09k stars 1.76k forks source link

Running Firecracker in Docker container #1999

Closed mazzy89 closed 3 years ago

mazzy89 commented 4 years ago

The getting started explains all the steps to download Firecracker and run it creating a new socket.

I would like to run it as a Docker container and wire a contribution.

Do you see any obstacles? Which base image would you recommend to start?

dianpopa commented 3 years ago

Hello @mazzy89 ,

Sorry for the late response. Can you provide more detail about what you want to achieve. What do you mean by running Firecracker as a Docker container? What base image are you referring to?

mazzy89 commented 3 years ago

Hello @dianpopa

I've actually achieved that.

I was able to spin up Firecracker inside a Docker container and bootstrap Flatcar Linux as OS.

Thank you for replying here

dianpopa commented 3 years ago

Oh that is really cool! If you ever feel like it, you could help share the knowledge of your achievement in a PR. A great place for this would be our dev setup documentation.

Thank you!

mazzy89 commented 3 years ago

Sure. I would like to share this achievement in a PR. Thanks

ustiugov commented 3 years ago

I'd like to share a relevant achievement.

We have set up GitHub Actions CI environment for integration testing of an entire FaaS (Knative/Kubernetes) cluster with multiple Firecracker MicroVMs in a Docker container (by extending kind framework for K8s CI/CD).

Credit to @shyamjesal.

ustiugov commented 3 years ago

apologies, here is the link to the code

acatangiu commented 3 years ago

We should find a better place for these than comments on this issue 🚀 🥇