Feature: allow wrangler dev to run local containers with /dev/fuse for R2/S3 FUSE mounts #14297
banchichen
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature
Production Cloudflare Containers support mounting R2/S3 buckets via FUSE (s3fs, tigrisfs, mountpoint-s3, …), GA'd on 2025-11-21. But when the same container-enabled Worker runs locally under
wrangler dev, the local container is launched without the/dev/fusedevice and withoutCAP_SYS_ADMIN, so any FUSE mount inside the container fails. There is currently nowrangleroption to enable it.As a result, FUSE-dependent behavior can't be exercised locally and has to be branched/stubbed for dev, diverging from the deployed code path.
Motivation
docker run --cap-add SYS_ADMIN --device /dev/fuse …mounts fine. The only gap is thatwrangler devdoesn't expose a way to pass these to the local container run.wrangler devtoday.Proposed solution
An opt-in, dev-only way to grant the local container the FUSE device + capability. Any of:
docker_run_argspassthrough honored only bywrangler dev.Scope: local dev only (no effect on
wrangler deploy); off by default.Alternatives considered
localBucket/ sync mode — works, but is a deliberately different execution path (periodic sync vs FUSE overlay), so it isn't parity and forces conditional code.docker run— loses the Worker↔container integration, bindings, and dev registrywrangler devgives.Additional context / caveats
CAP_SYS_ADMINis broad — keep it strictly opt-in and document the implications./dev/fuseavailability differs inside the Docker VM on macOS/Windows (Docker Desktop, Colima). A Linux-first, best-effort implementation that errors clearly when the device is missing would already be valuable.References
unsquashfsvs prod FUSE overlay): https://developers.cloudflare.com/sandbox/guides/backup-restore/Beta Was this translation helpful? Give feedback.
All reactions