Skip to content

Run Docker container images in Firecracker microVMs on balenaOS

Notifications You must be signed in to change notification settings

chemical-soup/balena-firecracker

 
 

Repository files navigation

balena-firecracker

Run Docker container images in Firecracker microVMs on balenaOS

What is Firecracker?

Firecracker is an open source virtualization technology that is purpose-built for creating and managing secure, multi-tenant container and function-based services that provide serverless operational models. Firecracker runs workloads in lightweight virtual machines, called microVMs, which combine the security and isolation properties provided by hardware virtualization technology with the speed and flexibility of containers.

What is firecracker-containerd?

firecracker-containerd enables the use of a container runtime, containerd, to manage Firecracker microVMs.

Potential use cases of Firecracker-based containers include:

Sandbox a partially or fully untrusted third party container in its own microVM. This would reduce the likelihood of leaking secrets via the third party container, for example. Bin-pack disparate container workloads on the same host, while maintaining a high level of isolation between containers. Because the overhead of Firecracker is low, the achievable container density per host should be comparable to running containers using kernel-based container runtimes, without the isolation compromise of such solutions. Multi-tenant hosts would particularly benefit from this use case.

Supported Devices

Firecracker supports x86_64 and aarch64 Linux, see specific supported kernels.

KVM

Firecracker requires the KVM Linux kernel module.

The presence of the KVM module can be checked with:

lsmod | grep kvm

Usage

Set the env var RUN_IMAGE to the desired OCI-compliant container image and optionally provide a RUN_COMMAND. Runtime options can be provided via EXTRA_RUN_OPTS and EXTRA_RUN_FLAGS. For a full list of options execute firecracker-ctr run --help in the service shell.

Contributing

Please open an issue or submit a pull request with any features, fixes, or changes.

Resources

About

Run Docker container images in Firecracker microVMs on balenaOS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 51.3%
  • Shell 48.7%