Modal vs Docker Cloud Sandboxes

Modal runs sandboxes on a large AI compute platform, with GPUs, many regions, thousands of sandboxes at once and a VM runtime for Docker. Docker Cloud Sandboxes puts the sbx microVM you run on your laptop into the cloud, with its own Docker Engine and memory kept when it stops. Docker allows 10 at a time by default, and higher quotas go through Docker.

The companies and products

Modal

Modal is a serverless cloud for AI work: inference, training, batch jobs and sandboxed code, all driven from Python, TypeScript or Go code.

Modal Sandboxes are containers you create from code, run commands in, and then terminate. By default they run under gVisor, a user-space kernel from Google. Since October 2026 you can also pick a VM runtime with its own Linux kernel for Docker and FUSE (Battleships tracks that as a separate card, Modal VM Sandboxes). Your code can save a sandbox's disk as a filesystem snapshot and start new sandboxes from it. It suits teams that already run models on Modal and want scalable code execution next to their GPUs.

Docker Cloud Sandboxes

Docker Cloud Sandboxes runs Docker's sbx coding-agent microVMs on Docker-managed compute instead of your laptop.

Each sandbox is a microVM with its own Linux kernel and its own Docker Engine. You start it from the same sbx CLI you use locally, or from the Sandboxes API, with Claude Code, Codex and other agents ready to run. You can move a sandbox from your laptop to the cloud and back, publish HTTPS ports and SSH in. It launched on September 24, 2026, and it bills pay-as-you-go on a personal Docker account.

Regions
Not published

Which use cases each one fits

For each use case, Battleships prices every sandbox provider on the same workload and sorts them from the cheapest monthly bill up. “15th cheapest of 336” means 14 of the other 335 providers run that workload, with every feature it needs, for less. “With limits” means the provider runs it but misses something, so it is listed after every full match. Open a use case for its whole ranking and what each provider misses.

Use case and its workloadModal: price rankDocker Cloud Sandboxes: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
A software factory needs Docker inside and agents that work for days. Docker has Docker inside; each run ends 24 hours after creation unless its always-on entitlement restarts it. On Modal you pick the VM runtime for Docker and snapshot the filesystem between sessions; Modal VM ranks 7th at $633 a month. boat ranks 8th at $634, with Docker and a desktop built in.
106th of 365, with limits
$633 a month
295th of 365, with limits
$4,928 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
An agent that lives on its machine all month needs to run past 24 hours. On Modal your code snapshots the filesystem and starts a new sandbox each day. On Docker the always-on entitlement restarts the sandbox with memory kept; without it, your code resumes it. On boat, turn auto-stop off on a paid plan (default 1 hour).
61st of 361, with limits
$1,574 a month
139th of 361, with limits
$5,110 a month
6th cheapest of 361
$657 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
Modal fits bursts of short code runs better: it ranks 11th here at about $140 a month, with 5,000 containers at once on Team. Docker allows 10 at a time by default, and higher quotas go through Docker.
15th cheapest of 336
$140 a month
239th of 336, with limits
$233 a month
189th of 336, with limits
$2,000 a month
Sandboxes for your users
300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month
Serving your own users needs hundreds of sandboxes at once. Modal's Team plan allows that, and Modal ranks 15th at about $671 a month. Docker's default quota is 10. boat ranks 2nd at about $209: a stopped sandbox has no compute charge and keeps its disk for at least 14 days.
18th cheapest of 349
$671 a month
266th of 349, with limits
$1,628 a month
3rd cheapest of 349
$209 a month
RL rollouts
1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month
RL rollouts launch many short sandboxes at once, which is what Modal is built for. Docker's default of 10 concurrent sandboxes holds it back unless Docker raises your quota.
6th cheapest of 349
$11,982 a month
122nd of 349, with limits
$7,000 a month
39th of 349, with limits
$2,000 a month
Agent evals
250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month
62nd cheapest of 359
$889 a month
291st of 359, with limits
$1,400 a month
10th cheapest of 359
$200 a month
CI runners
40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month
110th cheapest of 374
$1,112 a month
300th of 374, with limits
$672 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A dev box that stays on all month does not fit either one in a single session. Docker keeps memory and files across a stop. Modal keeps the root disk through a filesystem snapshot your code takes, or a folder in a Volume.
129th of 371, with limits
$9.07 a month
140th of 371, with limits
$204 a month
19th cheapest of 371
$26 a month
Computer-use agents
50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month
Computer-use agents need a screen. Modal has no built-in desktop, but its official example installs Xvfb, Chromium and noVNC in a VM sandbox; with that setup Modal ranks 6th at about $153 a month. Docker's official Playwright kit adds headless Chromium with no display server. boat ranks 8th at $200, with a 60 fps desktop built in.
45th cheapest of 367
$153 a month
298th of 367, with limits
$1,400 a month
7th cheapest of 367
$200 a month
Browser-use agents
50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month
57th of 356, with limits
$121 a month
189th of 356, with limits
$700 a month
7th cheapest of 356
$200 a month
Scraping & bots (startup scale)
50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month
98th cheapest of 343
$252 a month
192nd of 343, with limits
$350 a month
6th cheapest of 343
$90 a month
Mass scraping & bots (undetectable)
1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month
171st of 327, with limits
$5,957 a month
190th of 327, with limits
$7,000 a month
73rd of 327, with limits
$1,800 a month
Parallel red teaming
200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month
289th of 351, with limits
$464 a month
114th of 351, with limits
$350 a month
3rd cheapest of 351
$200 a month
GPU eval jobs
10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month
Modal rents GPUs from T4 to B300 next to its sandboxes. Docker Cloud Sandboxes and boat are CPU only.
18th cheapest of 102
$1,116 a month
Not ranked: misses a requirementNot ranked: misses a requirement
macOS agents
5 at once · 4 vCPU / 8 GB · 1,000 sessions of 20 min a month
Not ranked: misses a requirementNot ranked: misses a requirementNot ranked: misses a requirement

Key features

FeatureModalDocker Cloud Sandboxesboat
IsolationgVisor user-space kernel by default; VM runtime with its own kernel (runtime="vm")MicroVM with its own Linux kernel; hypervisor not namedFull VM with its own kernel on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Docker insideYes with the VM runtime; not documented on the default gVisor runtimeYes, its own Docker Engine; the agent runs as a non-root user with sudoYes, in every sandbox, with root and systemd
Nested virtualizationVM runtime only, Enterprise plan only, as an experimental optionNot documentedYes, /dev/kvm for Android emulators and VMs
Longest session24 hours (default 5 minutes); for longer work, a filesystem snapshot and a new sandbox24 hours from creation (default 1 hour); with the always-on entitlement, a restart at expiry keeps memory; otherwise you resume itAuto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan for no cap
Stop and resumeNo paused state; filesystem and directory snapshots keep files after a sandbox ends (30 days by default, or no expiry); Volumes keep foldersStop keeps memory and files, free while stoppedDisk saved every minute and at each stop, kept at least 14 days; no compute charge while stopped; resume is a reboot
Fork and snapshotsOne filesystem snapshot boots many identical sandboxes; memory snapshots in alpha end the sandbox and expire after 7 daysSnapshot a running sandbox with disk or disk and memory, restore it as a new oneFork a running sandbox from its last 1-minute disk snapshot, without stopping it
Sandboxes at once100 containers on Starter, 5,000 on Team; no start-rate cap published10 by default; higher quotas through Docker, not self-serve100 on the $20 plan (12 starts a minute, 200 a day included), up to 2,000 on the $2,000 plan; extra starts $0.03 to $0.07
GPUsT4 to B300, on the gVisor runtime; 10 at once on Starter, 50 on TeamNone, CPU onlyNone
Desktop and browserNo built-in desktop; Modal's official example installs Xvfb, Chromium, x11vnc and noVNC in a VM sandboxNo desktop or display server; headless Chromium through Docker's official Playwright kit1920x1080, 60 fps desktop with Chrome and computer tools for agents
Coding agentsYou install a harness in the image (official OpenCode example)Claude Code, Codex, Copilot, OpenCode and more, run from the sbx CLI; no agent prompt or events APISeven agent harnesses installed, with a prompt, steer and events API to drive them from outside
Keeping API keys out of the sandboxSecrets are environment variables, or you run your own proxy in a sidecar (beta example)Cloud proxy sets the auth header for AI services and custom hosts; the sandbox sees a placeholderOptional AI credentials proxy ($1 a day plus $1 per 1,000 requests) for supported model providers; other secrets enter the sandbox
Outbound rulesBlock all, IP-range allowlist, domain allowlist (beta)Allow and deny rules by host, with allow-all, balanced and deny-all presetsOpen internet, no provider-side allowlist
Inbound accessEncrypted and raw TCP tunnels, connect tokens, inbound IP allowlistPublic HTTPS URL per published port, not behind Docker sign-in; SSH with Docker-issued certificatesHTTPS URLs for up to 50 ports, token-gated by default; SSH; raw ports (IPv6 only on sandboxes without their own IPv4)
RegionsUS, EU and Asia-Pacific; pinning a region costs 1.15x to 1.75xNot publishedGermany, Finland and France; no region choice, no US or Asia region
Every feature Battleships tracks (43)
FeatureModalDocker Cloud Sandboxesboat
Full VM (own kernel)No documented wayYesYes
Docker insideNo documented wayYesYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdNo documented wayNot publishedYes
Desktop GUIWith your own setupNo documented wayYes
BrowserWith your own setupWith your own setupYes
Computer-use APIWith your own setupNo documented wayYes
SSHWith your own setupYesYes
Persistent diskWith your own setupYesYes
Pause/resumeNo documented wayYesYes
Automatic snapshotsNo documented wayYesYes
Fork/cloneYesYesYes
Live fork (no pause)Not publishedYesYes
Memory forkYesYesNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopYesNo documented wayNo documented way
Wake on requestNo documented wayNot publishedNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundYesNot publishedYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyNo documented wayYesYes
Secret proxy for any APINo documented wayYesYes
Preinstalled agentsWith your own setupYesYes
Agent harness APINo documented wayNo documented wayYes
MCP serverNo documented wayYesNo documented way
GPUYesNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayYesNo documented way
Self-hostingNo documented wayNo documented wayNo documented way
BYOCNo documented wayNo documented wayNo documented way
Open sourceNo documented wayNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsNot publishedNot publishedYes
Usage per sandbox (API)Not publishedNo documented wayYes
Audit logsYesNot publishedNo documented way
SSOYesYesNo documented way
SOC 2YesNo documented wayNo documented way
HIPAAYesNo documented wayNo documented way
EU data residencyYesNot publishedNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Modal12.60 runs/s
Docker Cloud SandboxesNot measured
boat28.06 runs/s

StarSling's run of 3 October 2026 (run 37073680030) ran the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, median of 5 sandboxes. Modal's VM runtime did 15.48 runs/s and its default gVisor runtime 12.60. boat did 28.06, second of 15. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host; boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. Providers ran on different hardware in different regions. Docker Cloud Sandboxes is not in the public benchmarks we use, so we cannot say how it compares, and Docker does not publish its hardware.

V8 Web Tooling Benchmark at a 4 vCPU / 8 GB target, runs per second, higher is better. Source: StarSling's run of 3 October 2026 (run 37073680030), median of 5 sandboxes. Providers ran on different hardware in different regions. StarSling gives a shared rank when the run cannot separate two providers. Modal measured on: Sandbox (gVisor), request = size, any region. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. Docker Cloud Sandboxes is not in the public benchmarks we use, so we cannot say which is faster.

Pricing in five scenarios

Each bill is priced from the providers' public price lists by the open Battleships engine, with the cheapest plan that runs the scenario. Start limits, per-start fees and plan minimums are in the price, boat's included.

ScenarioModal, a monthDocker Cloud Sandboxes, a monthboat, a month
One coding agent, workdays
4 vCPU / 8 GB, 50 GB disk, 8 hours a day, 22 days a month, files kept between days
$0 · Starter$49 · Docker Agentic Platform (pay-as-you-go)$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$109 · Starter · with limits$204 · Docker Agentic Platform (pay-as-you-go) · with limits$26 · $20/mo
50 agents in parallel
50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside
$1,480 · Starter · with limits$2,464 · Docker Agentic Platform (pay-as-you-go) · with limits$317 · $20/mo × 3 seats
Sandboxes for your users
2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once
$579 · Team$700 · Docker Agentic Platform (pay-as-you-go) · with limits$200 · $100/mo × 2 seats
1,000 short jobs at once
2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month
$1,911 · Team · with limits$1,400 · Docker Agentic Platform (pay-as-you-go) · with limits$8,800 · $2000/mo · with limits

Modal: Modal bills by the second for whichever is higher, the CPU and memory you request or what you use, and an idle sandbox pays until it ends. Modal prices CPU per physical core, and one core equals 2 vCPU, so a 4 vCPU / 8 GiB sandbox is $0.476 an hour at a full request. StarSling ran Modal with cpu=4 and the sandbox saw 4 CPUs (PR #121); sized that way, Modal bills 4 cores, $0.76 an hour. Starter is free with $30 of monthly credit, Team is $250 a month with $100 of credit, and pinning a region multiplies the price by 1.15x to 1.75x.

Docker Cloud Sandboxes: Docker bills per second for the size you pick, from $0.07 an hour for 1 vCPU / 2 GiB to $1.12 an hour for 16 vCPU / 32 GiB, with no monthly fee. A 4 vCPU / 8 GiB sandbox costs $0.28 an hour. A stopped sandbox costs nothing, and volumes and egress are free. New accounts get a one-time credit.

Docker Cloud Sandboxes: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A default sandbox (4 vCPU / 8 GB) costs $0.036 an hour, billed per second while it runs. A stopped sandbox has no compute charge and keeps its disk for at least 14 days, but saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan includes 12 starts a minute, 60 an hour and 200 a day; each extra start costs $0.03 to $0.07.

Limits in those scenarios

Modal and Docker both end a session at 24 hours, so one agent that never stops fits neither in a single session as priced. Docker's default of 10 concurrent sandboxes rules it out for 50 agents in parallel, sandboxes for your users and 1,000 short jobs at once, unless Docker raises your quota. Modal handles the user sandboxes on Team and runs the 50-agent fleet with Docker on its VM runtime; between workdays your code keeps files with a filesystem snapshot or a Volume. boat fits every scenario but the 1,000-job burst: its $2,000 plan includes 90 starts a minute and 2,400 a day, bills extra starts at $0.03 to $0.07, and refuses starts above 3 times the included rate per minute.

ScenarioModalDocker Cloud Sandboxesboat
One coding agent, workdaysNone for this scenarioNone for this scenarioNone for this scenario
One agent that never stops
  • Starter: sessions capped at 24 h
  • Docker Agentic Platform (pay-as-you-go): sessions capped at 24 h
None for this scenario
50 agents in parallel
  • missing Docker inside
  • Docker Agentic Platform (pay-as-you-go): max 10 concurrent
  • needs talk to sales: fleet of 50 needs a quota increase: new accounts get 10 machines; only through sales
None for this scenario
Sandboxes for your usersNone for this scenario
  • Docker Agentic Platform (pay-as-you-go): max 10 concurrent
  • needs talk to sales: fleet of 300 needs a quota increase: new accounts get 10 machines; only through sales
None for this scenario
1,000 short jobs at once
  • shared vCPUs on this tier (Modal sells dedicated cores separately as “Sandbox (gVisor), request = size, any region”): heavy, sustained CPU use can be slowed by other tenants
  • Docker Agentic Platform (pay-as-you-go): max 10 concurrent
  • needs talk to sales: fleet of 1,000 needs a quota increase: new accounts get 10 machines; only through sales
  • 2,400 starts/day included, paid above that (needs ~6,667)
  • 600 starts/hour included, paid above that (needs ~1,000)
  • starts above 90/min are paid, and starts above 270/min fail with 429

Which one should you use?

Use Modal when

your sandboxes need GPUs, must run outside Europe, need an outbound allowlist, or come in huge bursts of short jobs that finish in minutes.

  • GPUs next to your sandboxes. If your agent trains or runs models, Modal rents GPUs from T4 to B300 on the same platform as its sandboxes.
  • Very large bursts. For thousands of short jobs at once, Modal runs up to 5,000 containers on Team. Docker allows 10 by default, and higher quotas go through Docker.
  • Regions around the world. If your sandboxes must run in the US or Asia-Pacific, Modal lets you pin a region. Docker does not publish where it runs.

Use Docker Cloud Sandboxes when

you already run agents in sbx on your laptop and want a few of them to keep going in the cloud, with Docker inside, memory kept across stops and no monthly fee.

  • Docker inside by default. Every Docker cloud sandbox has its own Docker Engine. On Modal you choose the VM runtime for that.
  • Stop with memory kept. For agents that pause between steps, a stopped Docker sandbox comes back with its memory and running processes.
  • The same sandbox on your laptop. If you already run sbx locally, the cloud is the same microVM and CLI, and you can move a sandbox either way.

Where boat fits

Modal and Docker both end a session at 24 hours, and neither ships a desktop you can watch. If your agents work for days, run by the dozen with Docker inside, or need a desktop and browser to check what they built, look at boat.

No 24-hour cutoff

Modal ends a sandbox within 24 hours; your code continues from a filesystem snapshot. Docker ends a run 24 hours after creation unless its always-on entitlement restarts it. On boat, turn auto-stop off on a paid plan (default 1 hour), and the disk is saved every minute.

A whole machine, screen included

On Modal you install a desktop yourself from its official example, and Docker and nested virtualization need the VM runtime. Docker's official kit adds headless Chromium, and Docker does not document /dev/kvm. boat has a 60 fps desktop, Docker and /dev/kvm in every sandbox.

More CPU work per hour in one public run, agents driven from outside

In StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, Modal's VM runtime 15.48 and its gVisor runtime 12.60. Docker is not in that run. You prompt and steer boat's installed agents through an API; on Docker you send terminal input through its process API.

Use boat when your agents work for days or by the dozen, need Docker, a desktop or Android emulators, and have to be driven from your own app through an API. Turn auto-stop off on a paid plan for long work (default 1 hour). Compare it one to one: boat vs Modal and boat vs Docker Cloud Sandboxes.

boat's own limits
  • Plans start at $20 a month. The plan price comes back as VM time for that month. Unused time does not carry over. Source
  • Starts (create, fork, resume): the $20 plan includes 12 a minute, 60 an hour and 200 a day. The $2,000 plan includes 90 a minute, 600 an hour and 2,400 a day. Extra starts cost $0.03 to $0.07. A start fails with 429 above 3 times the included starts per minute, or 6 times per hour or per day. Source
  • A stopped sandbox has no compute charge. boat keeps its disk for at least 14 days. A saved snapshot keeps it longer; extra saved snapshots and the AI credentials proxy are paid. Source
  • Auto-stop defaults to 1 hour. You can turn it off on a paid plan. The trial allows 2 hours at most. Source
  • boat saves the disk every minute and at each stop. Memory, running programs and /tmp are not saved: a resume is like a reboot. A machine failure loses writes after the last good snapshot. Source
  • Machines run in Germany, Finland and France only. Snapshot copies can be stored outside the EU. Source
  • Public IPv6 and outbound IPv4. No dedicated IPv4. The IP changes at each resume. Source
  • Hosts are AMD Ryzen 7 9700X and Ryzen 9 9950X. vCPUs are shared. No GPU. You cannot boot your own Docker image. Source

Questions people ask

Is Modal cheaper than Docker Cloud Sandboxes?

Often, yes. One coding agent on workdays costs $0 on Modal inside its $30 monthly credit, against about $49 on Docker and $20 on boat. On Modal, your code keeps files between days with a filesystem snapshot or a Volume. One always-on agent costs about $109 on Modal and $204 on Docker, and both end a session at 24 hours; boat costs $26.

Which is faster, Modal or Docker Cloud Sandboxes?

We cannot say: Docker Cloud Sandboxes is not in the public benchmarks we use. In StarSling's run of 3 October 2026, Modal's VM runtime did 15.48 runs/s and its gVisor runtime 12.60 at 4 vCPU / 8 GB, and boat did 28.06. Providers ran on different hardware in different regions.

Can Modal run Docker inside a sandbox like Docker Cloud Sandboxes?

Yes, with Modal's VM runtime, chosen with runtime="vm". The default gVisor runtime does not document Docker support. Every Docker cloud sandbox has its own Docker Engine, and so does every boat sandbox.

How long can a sandbox run on Modal and on Docker?

Both end a session at 24 hours. Modal defaults to 5 minutes and recommends a filesystem snapshot and a new sandbox for longer work. Docker defaults to 1 hour, counts from creation, and with its always-on entitlement restarts the sandbox at expiry with memory kept. boat auto-stop defaults to 1 hour; on a paid plan you can turn it off, and then there is no session cap.

How many sandboxes can I run at once?

Modal allows 100 containers on Starter and 5,000 on Team. Docker allows 10 concurrent and 50 stored per account by default, and higher quotas go through Docker. boat runs 100 at once on the $20 plan, with 12 starts a minute and 200 a day included, and up to 2,000 at once on the $2,000 plan.

Does either have GPUs?

Modal does, from T4 to B300, on its default gVisor runtime. Docker Cloud Sandboxes and boat are CPU only, so Modal is the pick for GPU jobs.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons