Skip to content

Commit d68c39c

Browse files
Document linux/amd64-only Docker architecture
Update documentation to reflect that Sandbox SDK now builds Docker images for linux/amd64 only to ensure dev/prod parity. Changes: - Add architecture compatibility section to docker-setup partial - Clarify that ARM Mac users will use automatic emulation - Update Dockerfile reference to note linux/amd64 architecture - Explain dev/prod parity benefits Related to cloudflare/sandbox-sdk#245 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent f48db9f commit d68c39c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/content/docs/sandbox/configuration/dockerfile.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ See [Version compatibility](/sandbox/concepts/sandboxes/#version-compatibility)
2525

2626
**What's included:**
2727

28-
- Ubuntu 22.04 LTS base
28+
- Ubuntu 22.04 LTS base (linux/amd64 architecture)
2929
- Python 3.11.14 with pip and venv
3030
- Node.js 20 LTS with npm
3131
- Bun 1.x (JavaScript/TypeScript runtime)
3232
- Pre-installed Python packages: matplotlib, numpy, pandas, ipython
3333
- System utilities: curl, wget, git, jq, zip, unzip, file, procps, ca-certificates
3434

35+
:::note[Architecture]
36+
Images are built for **linux/amd64 only** to match Cloudflare's production container runtime. ARM Mac users will automatically use emulation (Rosetta/QEMU) for local development, ensuring perfect dev/prod parity.
37+
:::
38+
3539
## Creating a custom image
3640

3741
Create a `Dockerfile` in your project root:

src/content/partials/containers/docker-setup.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@ You must have Docker running locally when you run `wrangler deploy`. For most pe
22

33
You can check that Docker is running properly by running the `docker info` command in your terminal. If Docker is running, the command will succeed. If Docker is not running,
44
the `docker info` command will hang or return an error including the message "Cannot connect to the Docker daemon".
5+
6+
## Architecture compatibility
7+
8+
Sandbox SDK builds Docker images for **linux/amd64 only**, matching Cloudflare's production container runtime. This ensures dev/prod parity and prevents architecture-specific bugs.
9+
10+
**On ARM Macs (Apple Silicon)**: Docker automatically uses emulation (Rosetta/QEMU) when running amd64 images. This is expected behavior and ensures your local environment matches production exactly. You may notice slightly slower container startup during development, but this guarantees your code behaves identically in production.

0 commit comments

Comments
 (0)