Fly.io Machines vs Docker Cloud Sandboxes

Fly.io Machines are microVMs for hosting your own apps in 17 regions, with no time limit but nothing for agents built in. Docker Cloud Sandboxes are microVMs made for coding agents, started from the sbx CLI. Each run ends 24 hours after creation unless the always-on entitlement restarts it, and you get 10 at a time by default.

The companies and products

Fly.io Machines

Fly.io is an app hosting platform, and Machines are the microVMs underneath it that you can also start and stop through a REST API.

A Fly Machine boots your Docker image as a Firecracker microVM on Fly's own servers, in one of 17 regions. You pick a shared or performance CPU preset and mount one Volume at a time for data that must last. Fly Proxy can stop, suspend and wake Machines as traffic comes and goes. Machines themselves are an app-hosting building block; for agent sandboxes Fly also sells Sprites (see boat vs Sprites), so this page compares only the Machines product.

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. “123rd cheapest of 365” means 122 of the other 364 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 workloadFly.io Machines: 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 runs many agents for days. Docker allows 10 sandboxes at once by default, and each run ends at 24 hours unless the always-on entitlement restarts it. Fly has no time limit; files last on a Volume or with opt-in persist_rootfs. boat fits with Docker, /dev/kvm and a saved disk.
123rd of 365, with limits
$836 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 assistant that lives on its machine all month needs to run past 24 hours: on Docker, the always-on entitlement restarts it with memory kept. On Fly it keeps files on its Volume. On boat, turn auto-stop off (1 hour by default) on a paid plan.
186th of 361, with limits
$816 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
Fly ranks highest of the three for short code runs: per-second billing with no plan fee. Docker also bills per second with no monthly fee and can stop a sandbox with its memory between runs.
83rd of 336, with limits
$94 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
Fly has no published cap on Machines but its API creates about one per second per app. Docker's default of 10 concurrent sandboxes needs a quota raise through Docker to serve your users.
75th of 349, with limits
$600 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
52nd of 349, with limits
$2,838 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
124th of 359, with limits
$457 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
CI keeps the CPU busy, which drains a shared Fly vCPU's burst balance. Docker allows 10 jobs at once by default. Neither documents /dev/kvm for Android builds; boat has it.
154th of 374, with limits
$288 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 works on Fly with a Volume for lasting files. On Docker it needs the always-on entitlement, or your code resumes it after each 24-hour run.
160th of 371, with limits
$35 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
Neither ships a desktop: on Fly you build and stream one yourself, and Docker's Playwright kit adds headless Chromium with no screen. boat has a 60fps desktop with Chrome.
140th of 367, with limits
$173 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
229th of 356, with limits
$90 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
233rd of 343, with limits
$67 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
Fly ranks well above Docker here: it can spread scrapers over 17 regions with no 10-at-once default quota.
47th of 327, with limits
$1,232 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
168th of 351, with limits
$63 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
Not ranked: misses a requirementNot 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

FeatureFly.io MachinesDocker Cloud Sandboxesboat
Kind of productApp hosting platform; you boot your own image as a microVMCloud microVMs for coding agents, started from the sbx CLI or the Sandboxes APIAgent sandbox: a full VM per agent, ready to use
IsolationFirecracker microVM with its own kernelMicroVM with its own Linux kernel; hypervisor not namedFull VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Session lengthNo documented maximum; a Machine runs until you or autostop stop it1 hour by default, at most 24 hours from creation; with the always-on entitlement, a restart at expiry keeps memoryAuto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan for no cap
Sandboxes at onceNo published quota; the API creates about one Machine per second per app10 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, self-serve
Docker, systemd and nested virtualizationRoot and Docker you install yourself; Fly's own init by default (systemd as PID 1 is not a documented setup); /dev/kvm not documentedIts own Docker Engine inside; agent runs as a non-root user with sudo; nested virtualization not documentedDocker, root, systemd and /dev/kvm on every machine
Custom imageYour own Docker imageDocker base images and your own customized imagesStart from boat's Ubuntu 24.04 image or a saved snapshot; you cannot boot your own image
Files after a stopRoot file system resets by default; opt-in persist_rootfs keeps it, but Fly staff say not to trust it with critical data. Lasting data goes on one Volume, billed for its full size all monthStop keeps files and memory, with no charge while stoppedThe disk is saved every minute and at each stop, kept at least 14 days, with no compute charge while stopped; memory is not saved
Memory on pauseSuspend keeps memory for Machines up to 2GB; dropped on deploy or host moveStop keeps memory and files; resume picks up where it left offResume reboots from disk (no memory snapshots)
ForkClone copies a Machine's config; its Volume starts empty unless you restore a volume snapshot or fork the VolumeSnapshot a running sandbox with disk or disk and memory, then restore it as a new oneFork a running sandbox from its last 1-minute disk snapshot
Desktop and browserNot built in; you set it up: add a desktop, a browser and a VNC stream to your own imageNo desktop or display server; headless Chromium through Docker's official Playwright kit1920x1080, 60fps Linux desktop with Chrome and computer-use tools
Coding agentsNot built in on Machines; you install agents in your image. Fly's separate Sprites product ships coding agentsClaude Code, Codex, Copilot, OpenCode and more, run from the sbx CLI; the Sandboxes API runs processes but has no agent prompt or events APISeven harnesses installed, with a prompt, steer and events API to drive them from outside
Keeping API keys out of the sandboxSecrets arrive as environment variables; you can deploy Fly's open-source tokenizer proxy yourselfCloud proxy sets the auth header for built-in AI services and custom hosts; the sandbox sees a placeholderOptional AI credentials proxy ($1 a day while on, plus $1 per 1,000 requests); real keys of supported providers stay out; other secrets still enter
Reaching the sandboxPublic HTTPS and TCP through Fly Proxy, Anycast IPs, custom domains, SSH, private network between MachinesPublic HTTPS URL per published port, not protected by Docker sign-in; not a TCP tunnel; SSH with Docker-issued certificatesUp to 50 HTTPS URLs, token-gated by default; SSH; public IPv6 and outbound IPv4; no dedicated IPv4
Outbound rulesNetwork policies allow chosen ports and protocols and deny the restAllow and deny rules by host, with allow-all, balanced and deny-all presetsOpen internet on every plan; no provider-side allowlist
Regions17 regions on six continentsNot publishedGermany, Finland and France; no US or Asia region, and you cannot pick one
Every feature Battleships tracks (43)
FeatureFly.io MachinesDocker Cloud Sandboxesboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNot publishedNo documented wayYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUINo documented wayNo documented wayYes
BrowserNo documented wayWith your own setupYes
Computer-use APINo documented wayNo documented wayYes
SSHYesYesYes
Persistent diskYesYesYes
Pause/resumeYesYesYes
Automatic snapshotsYesYesYes
Fork/cloneYesYesYes
Live fork (no pause)YesYesYes
Memory forkNo documented wayYesNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopYesNo documented wayNo documented way
Wake on requestYesNot publishedNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundYesNot publishedYes
Public IPv4YesNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyNo documented wayYesYes
Secret proxy for any APINo documented wayYesYes
Preinstalled agentsNo documented wayYesYes
Agent harness APINo documented wayNo documented wayYes
MCP serverYesYesNo documented way
GPUNo documented wayNo 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 sourceYesNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsNo documented wayNot publishedYes
Usage per sandbox (API)No documented wayNo documented wayYes
Audit logsNot publishedNot publishedNo documented way
SSONo documented wayYesNo 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

Fly.io MachinesNot measured
Docker Cloud SandboxesNot measured
boat28.06 runs/s

Neither Fly.io Machines nor Docker Cloud Sandboxes is in the public benchmarks we use, so we cannot say which is faster. Docker does not publish its hardware. In StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 V8 Web Tooling Benchmark runs per second at 4 vCPU / 8 GB, 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. Fly's results depend on its CPU class: shared vCPUs guarantee only 6.25% of each core, and performance vCPUs get the full core.

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. 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. Fly.io Machines and Docker Cloud Sandboxes are 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.

ScenarioFly.io Machines, 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
$15 · Pay As You Go · with limits$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
$36 · Pay As You Go · 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
$487 · Pay As You Go · 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
$110 · Pay As You Go · with limits$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
$232 · Pay As You Go · with limits$1,400 · Docker Agentic Platform (pay-as-you-go) · with limits$8,800 · $2000/mo · with limits

Fly.io Machines: Fly bills each Machine per second while it runs, by CPU preset and memory, with no plan fee. Stopped Machines pay for their root file system, and Volumes are billed for their full size all month at $0.15 per GB. The figures here use Fly's lowest rate: shared vCPUs bought in 1-year reservation blocks for 40% off.

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, 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. The whole plan price comes back as VM time for that month, and unused time does not carry over. A default 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs. A stopped sandbox has no compute charge; extra saved snapshots and the optional AI credentials proxy still charge. The $20 plan includes 200 starts a day; extra starts cost $0.03 to $0.07 each.

Limits in those scenarios

Fly is marked a compromise in all five scenarios: it is an app platform, its lowest figures need a 1-year reservation, and its shared vCPUs guarantee only 6.25% of each core, so long builds get throttled. Docker fits one agent on workdays. Its 24-hour run limit counts against an agent that never stops unless the always-on entitlement restarts it. Its default of 10 concurrent sandboxes rules it out for 50 agents, sandboxes for your users and 1,000 short jobs at once, unless Docker raises your quota. boat fits four of the five. At 1,000 short jobs at once, the $2,000 plan charges for starts above 90 a minute and refuses them above 270.

ScenarioFly.io MachinesDocker Cloud Sandboxesboat
One coding agent, workdays
  • different kind of product: app platform
  • files survive a stop only in one Fly Volume (root file system too with opt-in persist_rootfs): packages installed elsewhere reset
  • 1-year commitment
  • burstable CPU: 6.25% of each vCPU guaranteed, throttled above that
None for this scenarioNone for this scenario
One agent that never stops
  • different kind of product: app platform
  • files survive a stop only in one Fly Volume (root file system too with opt-in persist_rootfs): packages installed elsewhere reset
  • 1-year commitment
  • burstable CPU: 6.25% of each vCPU guaranteed, throttled above that
  • Docker Agentic Platform (pay-as-you-go): sessions capped at 24 h
None for this scenario
50 agents in parallel
  • different kind of product: app platform
  • files survive a stop only in one Fly Volume (root file system too with opt-in persist_rootfs): packages installed elsewhere reset
  • 1-year commitment
  • burstable CPU: 6.25% of each vCPU guaranteed, throttled above that
  • 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 users
  • different kind of product: app platform
  • 1-year commitment
  • burstable CPU: 6.25% of each vCPU guaranteed, throttled above that
  • 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
  • different kind of product: app platform
  • 1-year commitment
  • burstable CPU: 6.25% of each vCPU guaranteed, throttled above that
  • 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 Fly.io Machines when

you host apps or services that must run near users around the world, stay up as long as you like and wake on traffic, and you want to build the agent tooling yourself.

  • No clock on a Machine. For work that must keep running: a Fly Machine has no documented time limit, while a Docker run ends 24 hours after creation unless the always-on entitlement restarts it.
  • 17 regions worldwide. For users outside one region: Fly runs Machines in 17 regions on six continents, while Docker does not say where its sandboxes run.
  • A full app platform around each VM. For hosting real services: Fly Proxy wakes Machines on traffic, with public TCP, Anycast IPs, custom domains and a private network.

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 memory kept across stops, outbound rules by host and no monthly fee.

  • Coding agents ready to run. For developers who want Claude Code or Codex in a sandbox today: sbx starts them with Docker inside, no image to build.
  • Stop and fork with memory. For agents that pause between steps: a stopped sandbox comes back with its memory, and a running one can be forked with it.
  • 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

Fly gives you a fast VM for your own app and leaves the agent parts to you. Docker gives you agents ready to run, 10 at a time by default, with runs of up to 24 hours. If your agents work for hours or days, many at once, boat gives each one a full VM with a disk saved every minute, a desktop, and an API to drive the agents inside.

Long runs with a saved disk

A Docker run ends 24 hours after creation; the always-on entitlement restarts it, otherwise your code resumes it. On Fly, lasting files go on one Volume billed for its full size, or on the root file system with opt-in persist_rootfs. boat has no session cap once auto-stop is off (1 hour by default) and saves the disk every minute. It does not save memory.

A whole machine, screen included

Neither Fly nor Docker documents /dev/kvm, so Android emulators and nested VMs are not a documented path. Neither ships a desktop: on Fly you build and stream one yourself, and Docker's Playwright kit adds headless Chromium. boat ships /dev/kvm and a 60fps desktop.

Drive agents inside from outside

On Fly you install the agents and write the code that starts and watches them. On Docker you attach from the sbx CLI or run processes through its API. boat has a prompt, steer and events API for seven installed harnesses.

Use boat when your agents run for days or by the dozen, need Docker, emulators, a desktop or a browser on a full VM whose disk is saved every minute, and have to be driven from your own app through an API. Compare it one to one: boat vs Fly.io Machines 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 Fly.io Machines cheaper than Docker Cloud Sandboxes?

On Fly's lowest rate, yes: one agent on workdays is $15 a month on Fly against $49 on Docker, and one agent running all month is $36 against $204. Fly's figures need a 1-year reservation and assume work that stays within a shared vCPU's 6.25% baseline. On boat the same two are $20 and $26.

Which is faster, Fly.io Machines or Docker Cloud Sandboxes?

Neither is in the public benchmarks we use, so we cannot say. On Fly, speed depends on whether you pick shared or performance vCPUs. Docker does not publish its hardware.

Can I run Docker inside Fly Machines and Docker Cloud Sandboxes?

Yes on both. A Docker cloud sandbox comes with its own Docker Engine, and on a Fly Machine you install Docker yourself as root. Neither documents /dev/kvm for Android emulators or nested VMs. boat has Docker, systemd and /dev/kvm on every machine.

Can either run longer than 24 hours?

A Fly Machine has no documented time limit and runs until it is stopped. A Docker cloud sandbox run lasts one hour by default and at most 24 hours from creation; the always-on entitlement restarts it at expiry with its memory. On boat, auto-stop defaults to 1 hour; you can set up to 30 days or turn it off on a paid plan.

How many can I run at once?

Docker allows 10 concurrent and 50 stored sandboxes per account by default; higher quotas go through Docker. Fly publishes no such quota, but its API creates about one Machine per second per app. boat's $20 plan runs 100 at once, and the $2,000 plan 2,000; starts per minute and per day are capped by plan.

Do they keep my files when they stop?

Docker keeps files and memory on stop. A Fly Machine keeps files on its Volume, and on the root file system too with opt-in persist_rootfs, which Fly staff say not to trust with critical data. boat saves the disk every minute and at each stop and keeps it at least 14 days; memory is not saved.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons