What is a container?

A container is an isolated process that shares the kernel of the machine it runs on. It has its own files, network and process list, and it runs OCI images.

Updated

How a container isolates code

The Linux kernel gives each container its own view of the file system, the network and the process list, and limits the CPU and memory it can use. All containers on a machine still call the same kernel.

What that means for a sandbox

A container starts fast and runs OCI images, so an existing Docker image can work as a sandbox. The shared kernel is the trade-off. A microVM or a user-space kernel puts one more layer between the code and the host.

Compared with other isolation types

How each type keeps sandboxes apart

TypeOwn kernelProviders
MicroVM60
ContainerThis termNo13
User-space kernelIn user space7
Full VM20

Providers that use containers

6 of 13
All Container sandboxes
  • AgentBayCloud sandboxes for browser, desktop, mobile and code.
    Isolation
    Container
    vCPU / hr
    $0.027
    Free tier
    Free Basic plan
  • Anthropic Code ExecutionSandboxed Python and bash containers that Claude runs through the Anthropic API.
    Isolation
    Container
    vCPU / hr
    $0.050
    Free tier
    1,550 hours / month
  • DaytonaStateful sandboxes that boot from OCI-compliant images.
    Isolation
    Container
    vCPU / hr
    $0.050
    Free tier
    $200 free compute
  • Beam SandboxesIsolated, secure environments for running untrusted code at scale.
    Isolation
    Container
    vCPU / hr
    $0.068
    Free tier
    Not listed
  • Gemini Enterprise Agent Platform Code ExecutionManaged sandboxes that run code for AI agents.
    Isolation
    Container
    vCPU / hr
    $0.085
    Free tier
    50 vCPU-hours and 100 GiB-hours free per month
  • Upstash BoxIsolated cloud containers that give AI agents a computer.
    Isolation
    Container
    vCPU / hr
    $0.100
    Free tier
    5 CPU hours per month

Container compared

Related terms

All glossary terms

Related