Container vs MicroVM

A container is an isolated process that shares the host kernel. A microVM is a small virtual machine with its own kernel. A microVM puts one more layer between sandbox code and the host.

Updated

Container

Shares the host kernel and runs OCI images.

Type
Container
Own kernel
No
Used by
AgentBay, Anthropic Code Execution, Daytona, Beam Sandboxes, Gemini Enterprise Agent Platform Code Execution, Upstash Box, Sendblue Sandboxes, Agent Sandbox, Apify AI Code Sandbox, Containarium Cloud, OpenAI Code Interpreter, Perplexity Sandbox, Sandock

MicroVM

Each sandbox has its own kernel.

Type
MicroVM
Own kernel
Used by
Krova Cloud, Zipbox, Lizard Sandboxes, Shellbox, Koyeb Sandboxes, Celesto Cloud, Northflank Sandboxes, Alibaba Cloud Agent Sandbox, Prime Sandboxes, DigitalOcean MicroVMs, Isorun, Mosaic Sandbox, Runtime, Oblien Workspace, BytePlus AI Cloud Native Sandbox, CreateOS Sandbox, Fly.io Sprites, Collimate, EQVPS Sandboxes, Prized Sandboxes, Shardflux, DigitalOcean Harness Runtime, Together Sandbox, boxd, MIOSA, microsandbox cloud, Smol Machines, BoxLite Cloud, Declaw, E2B, HopX, InstaVM, Leap0, Superserve, Thunder Sandboxes, Solari, PandaStack Sandbox, LangSmith Sandboxes, Caged, Docker Sandboxes, Islo Machines, Tensorlake Sandboxes, Cloudflare Sandbox, OpenPond Sandboxes, Azure Container Apps Sandboxes, Amazon Bedrock AgentCore Code Interpreter, Amazon Bedrock AgentCore Runtime, Microsoft Foundry hosted agents, AWS Lambda MicroVMs, Deno Sandbox, Runloop, CoreWeave Sandboxes, Vercel Sandbox, Depot Sandboxes, Blaxel, Maritime, Nebius Sandboxes, RemoteHost, SF Compute Autoresearch Sandboxes, Unikraft Cloud

How they differ

5 fields, side by side

Container
MicroVM
Kind
Container: Isolated process
MicroVM: Small virtual machine
Kernel
Container: Shared with the host
MicroVM: Own guest kernel for each sandbox
Runs
Container: OCI images
MicroVM: A kernel and a disk image
Needs hardware virtualization
Container: No
MicroVM: Yes
Examples
Container: Docker, runC
MicroVM: Firecracker, Cloud Hypervisor

When the difference matters

A container shares the kernel of the machine it runs on. A microVM does not. Code that breaks out of its own environment still meets a separate kernel before it reaches the host. A container runs any OCI image as it is, which makes existing images easy to reuse.

Providers using each

List price per vCPU-hour

Related terms

All glossary terms

Related