Railway vs Docker Cloud Sandboxes
Railway is an app platform whose sandboxes are VMs next to your services. Railway destroys a sandbox after an idle timeout, unless you take a checkpoint. Docker Cloud Sandboxes runs the same sbx microVM you use on your laptop, with Docker inside, for up to 24 hours a run. It keeps memory when it stops.
The companies and products
Railway
Railway is a cloud platform for deploying web apps, servers and databases. It also sells Sandboxes and Cloud Agents.
Railway's main product is app hosting: you deploy services and databases as containers on its own hardware. In 2026 it added Sandboxes: isolated Linux VMs that you create from the CLI or a TypeScript SDK, run commands in and destroy. It also added Cloud Agents: a personal VM for a coding agent that keeps its disk and sleeps or wakes. Cloud Agents are in Priority Boarding, and breaking changes may occur. Railway suits teams that already host on Railway and want sandboxes next to their apps.
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. “28th cheapest of 365” means 27 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 | Railway: 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 Railway ranks 13th with your own setup: keep work in checkpoints and install Docker yourself. Docker ends each run 24 hours after creation and allows 10 at once by default. boat saves the disk every minute and ranks 8th. | 28th cheapest of 365 $1,481 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 Railway ranks 30th with the idle timeout set to 0, and memory bills the whole time. Docker needs its always-on entitlement, or your code resumes it after each 24-hour run. boat ranks 6th at $657 a month. | 21st cheapest of 361 $3,977 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 Short code runs suit both: Railway (43rd) bills CPU used and destroys the sandbox after, and Docker bills small sandboxes by the second with no monthly fee. | 42nd cheapest of 336 $413 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 Sandboxes for your users hit Railway's 100 per environment on Pro and Docker's default of 10 at once, which Docker can raise. boat's plans run up to 2,000 at once and rank 3rd. | 46th of 349, with limits $290 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 | 84th of 349, with limits $4,450 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 | 113th of 359, with limits $364 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 that builds containers needs Docker inside. Docker Cloud Sandboxes ships it. Railway does not document it, so you install and verify it yourself. boat documents Docker and /dev/kvm and ranks 2nd. | 116th cheapest of 374 $1,210 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 on all month works on Railway (71st) with the timeout off or a Cloud Agent. On Docker it needs the always-on entitlement, or a resume after each 24-hour run. boat ranks 19th. | 69th cheapest of 371 $89 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 Railway ranks 15th with your own setup: add Xvfb and noVNC. Docker has no display server; its Playwright kit adds headless Chromium. boat includes a 60 fps desktop and ranks 10th. | 47th cheapest of 367 $407 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 Browser agents run on all three. Docker's Playwright kit adds headless Chromium; on Railway you install a browser yourself. boat (7th) has Chrome on a desktop you can watch and take over. | 53rd of 356, with limits $93 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 | 65th cheapest of 343 $570 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 | 111th of 327, with limits $2,988 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 | 71st of 351, with limits $574 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 | Railway | Docker Cloud Sandboxes | boat |
|---|---|---|---|
| Isolation | Sandboxes are isolated Linux VMs; app services are containers | MicroVM with its own Linux kernel and its own Docker Engine | Full VM with its own kernel on a physical host dedicated to boat (Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared |
| How long a sandbox lives | Until you destroy it, or until the idle timeout (30 minutes by default, 0 for never) | 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 |
| Stop and resume | No stop: an idle sandbox is destroyed, and files survive in checkpoints you take | Stop keeps memory and files, and resume picks up where it left off | Stop keeps the disk, saved every minute and at stop, for at least 14 days; resume is like a reboot |
| Fork | Fork a running sandbox's filesystem, or boot new ones from a checkpoint | Snapshot a running sandbox with disk or disk and memory, then restore it as a new one | Fork from the last 1-minute disk snapshot; saved snapshots start new ones |
| Docker inside | Root on Ubuntu; Docker is not documented: you install and verify it yourself | Yes, its own Docker Engine; the agent runs as a non-root user with sudo | Yes, with root and systemd |
| Nested virtualization | Not documented | Not documented | /dev/kvm on every sandbox for Android emulators and VMs |
| Desktop and browser | No desktop included; you can add Xvfb and noVNC with the template builder and publish the port | No desktop or display server; headless Chromium through Docker's official Playwright kit | Built-in Linux desktop and Chrome stream at 1920x1080, 60 fps, with computer-use tools |
| Sandboxes at once | Per environment: 50 on Hobby, 100 on Pro; Enterprise can ask for more | 10 by default; higher quotas through Docker, not self-serve | 100 on the $20 plan up to 2,000 on the $2,000 plan; starts limited per minute, hour and day |
| Biggest sandbox | 8 vCPU / 8 GB on Hobby; on Pro up to 32 vCPU / 32 GB per the docs (24 vCPU / 24 GB per the pricing page) | 16 vCPU / 32 GiB, amd64 or arm64 by account | 8 vCPU / 16 GB on the $20 plan, 16 vCPU / 32 GB from the $100 plan |
| Inbound access | Up to 10 public HTTPS domains, set at creation, with no built-in auth; SSH and port forwarding | Public HTTPS URL per published port, not protected by Docker sign-in; SSH with Docker-issued certificates; not a TCP tunnel | Up to 50 HTTPS URLs, token-gated by default; SSH; public IPv6 for raw ports. No dedicated IPv4. |
| Coding agents | Claude Code, Codex, OpenCode and Pi preinstalled, run through exec | Claude Code, Codex, Copilot, OpenCode and more, run from the sbx CLI | Seven harnesses installed, with a prompt, steer and events API to drive them from outside |
| Keeping API keys out of the sandbox | Secrets go in as environment variables or a saved sign-in | Cloud proxy sets the auth header for built-in AI services and custom hosts; the sandbox sees a placeholder | Optional paid credentials proxy ($1 per day on, plus $1 per 1,000 requests) for supported model providers; other secrets still enter |
| Outbound rules | Open internet | Allow and deny rules by host, enforced at a proxy outside the VM | Open internet, no provider-side allowlist |
| Apps and databases nearby | Postgres, Redis and services in the same project, on a private network the sandbox can join | None; the same sandbox can also run on your laptop | None; host your own inside a sandbox |
Every feature Battleships tracks (43)
| Feature | Railway | Docker Cloud Sandboxes | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Not published | Yes | Yes |
| Nested virtualization | Not published | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | With your own setup | No documented way | Yes |
| Browser | Yes | 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 | No documented way | 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 | No documented way | Not published | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | No documented way | Not published | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | No documented way | Yes | No documented way |
| Secret proxy | No documented way | Yes | Yes |
| Secret proxy for any API | No documented way | Yes | Yes |
| Preinstalled agents | Yes | Yes | Yes |
| Agent harness API | Yes | 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 | Yes | No documented way | No documented way |
| Open source | No documented way | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Yes | Not published | Yes |
| Usage per sandbox (API) | No documented way | No documented way | Yes |
| Audit logs | Yes | Not published | No documented way |
| SSO | Yes | 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 Railway nor Docker Cloud Sandboxes is in the public benchmarks we use, and Docker does not publish its hardware, so we cannot say which is faster. 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, second of 15. Every boat sandbox in that 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.
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. Railway 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 | Railway, 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 | $16 · Hobby · 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 | $70 · Hobby · 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 | $739 · Hobby · 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 | $223 · Pro · 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 | $781 · Pro · with limits | $1,400 · Docker Agentic Platform (pay-as-you-go) · with limits | $8,800 · $2000/mo · with limits |
Railway: Railway bills sandboxes per second at about $50 per vCPU-month on CPU used and $50 per GB-month on memory in use, plus $0.05 per GB out. Memory keeps billing while a sandbox waits, until it is destroyed. The Hobby ($5) and Pro ($20) fees count toward usage. Disk and checkpoints have no published price, so our bills leave them out.
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 running sandbox bills per second at full rate, busy or idle: $0.036 an hour for 4 vCPU / 8 GB. A stopped sandbox has no compute charge, but saved snapshots above the included count and the AI credentials proxy still charge. Extra starts cost $0.03 to $0.07 each. A card is required, also for the 7-day trial.
Limits in those scenarios
Railway is marked as a different kind of product in every scenario because it is an app platform first and does not price sandbox disk. It caps sandboxes at 100 per environment on Pro. Docker ends each run 24 hours after creation unless the always-on entitlement restarts it, and its default of 10 at once rules it out for 50 agents, sandboxes for your users and 1,000 short jobs, unless Docker raises your quota. boat's $2,000 plan charges for starts above 90 a minute and refuses them above 270, so boat does not fit the 1,000-job burst. If a boat machine fails, you lose what was written after the last good snapshot.
| Scenario | Railway | 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 Railway when
your app and databases already live on Railway and you want sandboxes on the same private network, or you need US or Asia regions.
- Next to your apps and databases. If your app already runs on Railway, a sandbox can join the same private network as your Postgres and services.
- Regions in the US, EU and Asia. Railway runs in California, Virginia, Amsterdam and Singapore, and you pick a region per sandbox. Docker does not publish its regions.
- Pay for CPU you use. For many quick runs, a Railway sandbox bills CPU on what it uses, and Railway destroys it when the job ends.
Use Docker Cloud Sandboxes when
you already run agents in sbx on your laptop and want them to keep going in the cloud, with memory kept on stop, strict outbound rules, or no monthly fee for light use.
- Stop with memory. For agents that pause between steps, a stopped sandbox comes back with its memory and running processes.
- Laptop and cloud, one CLI. If you already run sbx locally, the cloud is the same microVM, and you can move a sandbox either way.
- Outbound rules at the proxy. Teams that must limit where an agent connects can set allow and deny rules by host, enforced outside the VM.
Where boat fits
Railway is built around sandboxes next to hosted apps, and Docker around moving your laptop sandbox to the cloud for up to a day per run. If your agents work for days, run by the dozen, or need a screen, look at boat: a full VM that saves its disk every minute, with a desktop and agents you drive by API. boat runs only in the EU and limits starts by plan.
Work that outlives a session
A Railway sandbox is destroyed after 30 idle minutes by default, and a Docker run ends 24 hours after creation unless the always-on entitlement restarts it. Turning Railway's timeout off keeps it, but memory bills the whole time. boat stops, keeps its disk at least 14 days and has no compute charge while stopped.
A desktop, Docker and KVM
Neither includes a desktop or documents /dev/kvm, and Railway does not document Docker. An agent that clicks through a web app or boots an Android emulator needs your own setup there. boat has a 60 fps desktop and /dev/kvm. Memory is not saved on boat.
Agents driven from outside
On Railway you run agents through exec, and on Docker you start them from the sbx CLI, so your app parses text to know when they finish. boat gives a prompt, steer and events API, plus an optional paid credentials proxy.
Use boat when your agents run for days or by the dozen, need /dev/kvm, a desktop or a headed browser, or have to be driven from your own app through an API. boat runs only in the EU. Compare it one to one: boat vs Railway 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 Railway cheaper than Docker Cloud Sandboxes?
In our scenarios, yes: one agent on workdays is $16 on Railway against $49 on Docker, and one agent all month is $70 against $204. Railway's numbers leave out disk, which it does not price. boat comes to $20 and $26 for the same two. Below about $20 of use a month, Docker costs less than boat, because it has no monthly fee.
Which is faster, Railway or Docker Cloud Sandboxes?
We cannot say: neither is in the public benchmarks we use, and Docker does not name its hardware. In StarSling's run of 3 October 2026, boat did 28.06 runs/s at 4 vCPU / 8 GB on a Ryzen 9 9950X host.
Can Railway sandboxes run Docker?
Railway's sandbox docs give you root on Ubuntu but do not mention Docker, so you install and verify it yourself. Docker Cloud Sandboxes gives each sandbox its own Docker Engine, and boat documents Docker, root and systemd on every machine.
How long can a sandbox run on each?
A Railway sandbox runs until you destroy it or its idle timeout fires, 30 minutes by default or never if set to 0. A Docker cloud run lasts 1 hour by default and at most 24 hours from creation; the always-on entitlement restarts it at expiry with memory kept. On boat, auto-stop defaults to 1 hour; turn it off on a paid plan for no cap.
How many sandboxes can I run at once?
Railway allows 50 per environment on Hobby and 100 on Pro. Docker's default is 10 at once and 50 stored per account, and Docker can raise it. boat runs 100 at once on the $20 plan and up to 2,000 on higher plans, with start limits per plan.
Do they keep memory when a sandbox stops?
Docker does: a stopped sandbox resumes with its memory and processes. Railway destroys idle sandboxes and keeps disk checkpoints you took. boat keeps the disk, saved every minute and at stop, and a resume is like a reboot.
Try boat
Install the CLI, then run boat new.
7-day free trial