Skip to content

🐛 Bug Report — Runtime APIs: No privileged mode option for Containers local development #5609

Description

@DarthBenro008

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions