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.
- Launched
- September 24, 2026
- Session length
- 1 hour by default, up to 24 hours from creation; with the always-on entitlement, a restart at expiry keeps memory
- 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 workload | Fly.io Machines: price rank | Docker Cloud Sandboxes: price rank | boat: 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 requirement | Not ranked: misses a requirement | Not 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 requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | Fly.io Machines | Docker Cloud Sandboxes | boat |
|---|---|---|---|
| Kind of product | App hosting platform; you boot your own image as a microVM | Cloud microVMs for coding agents, started from the sbx CLI or the Sandboxes API | Agent sandbox: a full VM per agent, ready to use |
| Isolation | Firecracker microVM with its own kernel | MicroVM with its own Linux kernel; hypervisor not named | Full VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared |
| Session length | No documented maximum; a Machine runs until you or autostop stop it | 1 hour by default, at most 24 hours from creation; with the always-on entitlement, a restart at expiry keeps memory | Auto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan for no cap |
| Sandboxes at once | No published quota; the API creates about one Machine per second per app | 10 by default; higher quotas through Docker, not self-serve | 100 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 virtualization | Root and Docker you install yourself; Fly's own init by default (systemd as PID 1 is not a documented setup); /dev/kvm not documented | Its own Docker Engine inside; agent runs as a non-root user with sudo; nested virtualization not documented | Docker, root, systemd and /dev/kvm on every machine |
| Custom image | Your own Docker image | Docker base images and your own customized images | Start from boat's Ubuntu 24.04 image or a saved snapshot; you cannot boot your own image |
| Files after a stop | Root 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 month | Stop keeps files and memory, with no charge while stopped | The 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 pause | Suspend keeps memory for Machines up to 2GB; dropped on deploy or host move | Stop keeps memory and files; resume picks up where it left off | Resume reboots from disk (no memory snapshots) |
| Fork | Clone copies a Machine's config; its Volume starts empty unless you restore a volume snapshot or fork the Volume | Snapshot a running sandbox with disk or disk and memory, then restore it as a new one | Fork a running sandbox from its last 1-minute disk snapshot |
| Desktop and browser | Not built in; you set it up: add a desktop, a browser and a VNC stream to your own image | No desktop or display server; headless Chromium through Docker's official Playwright kit | 1920x1080, 60fps Linux desktop with Chrome and computer-use tools |
| Coding agents | Not built in on Machines; you install agents in your image. Fly's separate Sprites product ships coding agents | Claude Code, Codex, Copilot, OpenCode and more, run from the sbx CLI; the Sandboxes API runs processes but has no agent prompt or events API | Seven harnesses installed, with a prompt, steer and events API to drive them from outside |
| Keeping API keys out of the sandbox | Secrets arrive as environment variables; you can deploy Fly's open-source tokenizer proxy yourself | Cloud proxy sets the auth header for built-in AI services and custom hosts; the sandbox sees a placeholder | Optional 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 sandbox | Public HTTPS and TCP through Fly Proxy, Anycast IPs, custom domains, SSH, private network between Machines | Public HTTPS URL per published port, not protected by Docker sign-in; not a TCP tunnel; SSH with Docker-issued certificates | Up to 50 HTTPS URLs, token-gated by default; SSH; public IPv6 and outbound IPv4; no dedicated IPv4 |
| Outbound rules | Network policies allow chosen ports and protocols and deny the rest | Allow and deny rules by host, with allow-all, balanced and deny-all presets | Open internet on every plan; no provider-side allowlist |
| Regions | 17 regions on six continents | Not published | Germany, Finland and France; no US or Asia region, and you cannot pick one |
Every feature Battleships tracks (43)
| Feature | Fly.io Machines | Docker Cloud Sandboxes | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Yes | Yes |
| Nested virtualization | Not published | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | No documented way | No documented way | Yes |
| Browser | No documented way | With your own setup | Yes |
| Computer-use API | No documented way | No documented way | Yes |
| SSH | Yes | Yes | Yes |
| Persistent disk | Yes | Yes | Yes |
| Pause/resume | Yes | Yes | Yes |
| Automatic snapshots | Yes | Yes | Yes |
| Fork/clone | Yes | Yes | Yes |
| Live fork (no pause) | Yes | Yes | Yes |
| Memory fork | No documented way | Yes | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | No documented way | No documented way |
| Wake on request | Yes | Not published | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | Yes | Not published | Yes |
| Public IPv4 | Yes | No documented way | No documented way |
| Egress allowlist | Yes | Yes | No documented way |
| Secret proxy | No documented way | Yes | Yes |
| Secret proxy for any API | No documented way | Yes | Yes |
| Preinstalled agents | No documented way | Yes | Yes |
| Agent harness API | No documented way | No documented way | Yes |
| MCP server | Yes | Yes | No documented way |
| GPU | No documented way | No documented way | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | Yes | No documented way |
| Self-hosting | No documented way | No documented way | No documented way |
| BYOC | No documented way | No documented way | No documented way |
| Open source | Yes | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | No documented way | Not published | Yes |
| Usage per sandbox (API) | No documented way | No documented way | Yes |
| Audit logs | Not published | Not published | No documented way |
| SSO | No documented way | Yes | No documented way |
| SOC 2 | Yes | No documented way | No documented way |
| HIPAA | Yes | No documented way | No documented way |
| EU data residency | Yes | Not published | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
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.
| Scenario | Fly.io Machines, a month | Docker Cloud Sandboxes, a month | boat, 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.
| Scenario | Fly.io Machines | Docker Cloud Sandboxes | boat |
|---|---|---|---|
| One coding agent, workdays |
| None for this scenario | None for this scenario |
| One agent that never stops |
|
| None for this scenario |
| 50 agents in parallel |
|
| None for this scenario |
| Sandboxes for your users |
|
| None for this scenario |
| 1,000 short jobs at once |
|
|
|
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
- boat vs Fly.io Machines
- boat vs Docker Cloud Sandboxes
- E2B vs Fly.io Machines
- Daytona vs Fly.io Machines
- Modal vs Fly.io Machines
- Vercel Sandbox vs Fly.io Machines
- Cloudflare Sandbox vs Fly.io Machines
- Blaxel vs Fly.io Machines
- Runloop vs Fly.io Machines
- Tensorlake vs Fly.io Machines
- Morph Cloud vs Fly.io Machines
- CodeSandbox SDK vs Fly.io Machines