Issue
Following this documentation regarding using FUSE as FS with R2 in Cloudflare Containers, i encountered the following bug:
I figured out, there is no option for the end user to enable/ask workerd to run Docker in privileged mode for local testing which hinders local testing of containers for certain applications. (Eg: FUSE support/modprobe)
Proposed Solution
-
Expose runPrevileged option and append it:
|
auto hostConfig = jsonRoot.initHostConfig(); |
if enabled, the docker api capnp already has the specs
|
privileged @30 :Bool $Json.name("Privileged"); |
-
Generate Capnp and allow Miniflare to access this for local-development
-
Miniflare exposes this as a config to wrangler
-
User can set a wrangler config either via config file or via CLI params wrangler dev --previleged
Would like to know your thoughts on this, and would love to contribute regarding the same!
cc: @anonrig
Issue
Following this documentation regarding using FUSE as FS with R2 in Cloudflare Containers, i encountered the following bug:
I figured out, there is no option for the end user to enable/ask workerd to run Docker in privileged mode for local testing which hinders local testing of containers for certain applications. (Eg: FUSE support/modprobe)
Proposed Solution
Expose
runPrevilegedoption and append it:workerd/src/workerd/server/container-client.c++
Line 287 in 4d3bfd7
if enabled, the docker api capnp already has the specs
workerd/src/workerd/server/docker-api.capnp
Line 145 in 4d3bfd7
Generate Capnp and allow Miniflare to access this for local-development
Miniflare exposes this as a config to wrangler
User can set a wrangler config either via config file or via CLI params
wrangler dev --previlegedWould like to know your thoughts on this, and would love to contribute regarding the same!
cc: @anonrig