[GH-ISSUE #4486] [Issue]: Official Docker image is missing Bubblewrap #2438

Closed
opened 2026-10-21 05:48:12 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4486

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The official Docker image does not include Bubblewrap, causing OS-sandbox features such as bwrap-backed shell tooling and Server Extensions to fail closed. Installing Bubblewrap manually still requires broad container security permissions.

Expected behavior

The official Docker image should support OS-sandbox features out of the box, or the Docker documentation should clearly state that they are unavailable by default and document the required security configuration.

Actual behavior

The Bubblewrap binary is absent from the stock image. After manually installing it, sandbox operations fail due to container permissions unless security restrictions are relaxed and SYS_ADMIN is added.

Steps to reproduce

  1. Deploy ghcr.io/pasta-devs/marinara-engine:latest using an unmodified Docker Compose configuration.
  2. Run docker exec -it <container> which bwrap and observe that no binary is found.
  3. Use an OS-sandbox feature such as bwrap-backed shell tooling or Server Extensions.
  4. Observe that the feature reports Bubblewrap is required and fails closed.
  5. Install Bubblewrap with apt-get install -y bubblewrap and add security_opt: [seccomp=unconfined, apparmor=unconfined] to the service.
  6. Observe bwrap: Can't mount proc on /newroot/proc: Operation not permitted; clearing this error requires cap_add: [SYS_ADMIN].

Environment

  • Marinara Engine version: 2.4.0 / ghcr.io/pasta-devs/marinara-engine:latest
  • Install type: docker
  • OS + version: Linux Mint 22.3 (Zena), Ubuntu 24.04 base; kernel 6.17.0-35-generic
  • Browser or app shell: Not provided

Logs, screenshots, or video

which bwrap returns no result. Initial error after manual installation: bwrap: No permissions to create new namespace. After setting seccomp and AppArmor to unconfined: bwrap: Can't mount proc on /newroot/proc: Operation not permitted.

Additional context

The host has kernel.apparmor_restrict_unprivileged_userns = 0. Manually installed packages are lost whenever the container is recreated. Adding SYS_ADMIN grants broad privileges. A maintainer replied that Bubblewrap likely needs to be added to the Docker image.

Discord thread: Official Docker image bubblewrap issue
Discord thread link: https://discord.com/channels/1417099416812392641/1533581598384193607
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-08-02T21:05:45.623Z] DarknessMyOldFriend: Okay, I am unsure if this a bug or me just not quite understanding what Prof. Mari is trying to do. Since the update to 2.4.0, I have been seeing Prof. Mari try to do a task via bubble wrap, notice it isn't installed, then go about it a different way. So she is able to do the things, it just takes a few failed commands to get there. I am unsure if this is something Prof. Mari was able to successfully before and now can not, or if she just started trying to use it after the update. Anyways, here's what Prof. Mari told me to put here:

Summary: On a stock docker compose install from the official ghcr.io/pasta-devs/marinara-engine:latest image, anything that needs the OS sandbox (bwrap-backed shell tooling, Server Extensions) fails closed because bwrap isn't present in the image. Getting it working requires manually installing bubblewrap and relaxing the container's security profile — which shouldn't be necessary for a plug-and-play Docker deploy.

Environment:

    Deploy: Docker Compose, image ghcr.io/pasta-devs/marinara-engine:latest
    Host OS: Linux Mint 22.3 (Zena) — Ubuntu 24.04 base
    Kernel: 6.17.0-35-generic
    kernel.apparmor_restrict_unprivileged_userns = 0 (host already permits unprivileged userns)
    Noticed after updating to the latest image


Repro:

    Deploy the image via compose (nothing custom).
    docker exec -it <container> which bwrap → empty (binary absent from image).
    Any OS-sandbox feature reports Bubblewrap is required and fails closed.
[Discord message: https://discord.com/channels/1417099416812392641/1533581598384193607/1533581598384193607]

[2026-08-02T21:05:50.380Z] DarknessMyOldFriend: (Mari's reply continued)

What I had to do to get partway:

    Install bubblewrap into the container on every recompose (apt-get install -y bubblewrap) — evaporates on container recreate.
    Add to compose service: security_opt: [seccomp=unconfined, apparmor=unconfined].

    This changed the error from bwrap: No permissions to create new namespace → bwrap: Can't mount proc on /newroot/proc: Operation not permitted.

    That next error needs cap_add: [SYS_ADMIN] to clear — at which point I'm re-granting broad privileges on every recompose just to make the official image function.


Questions for maintainers:

    Is bubblewrap supposed to be in the official image? If yes, this looks like a packaging regression (did a recent base-image bump drop it?).
    If it's intentionally host-provided, the Docker docs should loudly state that + document the required security_opt/cap_add for the OS sandbox to function in a container.
    Is there a supported/recommended way to run the OS sandbox in Docker without granting SYS_ADMIN?


Ask: Either bundle bubblewrap in the image (+ document the needed container security options), or clearly document that the OS sandbox is unavailable in the default Docker setup so it's not a surprise.
[Discord message: https://discord.com/channels/1417099416812392641/1533581598384193607/1533581618336235692]

[2026-08-02T22:03:29.784Z] Marinara: Oh, yeah, I think we need to add it to the Docker.
[Discord message: https://discord.com/channels/1417099416812392641/1533581598384193607/1533596128128270547]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4486 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The official Docker image does not include Bubblewrap, causing OS-sandbox features such as bwrap-backed shell tooling and Server Extensions to fail closed. Installing Bubblewrap manually still requires broad container security permissions. ## Expected behavior The official Docker image should support OS-sandbox features out of the box, or the Docker documentation should clearly state that they are unavailable by default and document the required security configuration. ## Actual behavior The Bubblewrap binary is absent from the stock image. After manually installing it, sandbox operations fail due to container permissions unless security restrictions are relaxed and SYS_ADMIN is added. ## Steps to reproduce 1. Deploy ghcr.io/pasta-devs/marinara-engine:latest using an unmodified Docker Compose configuration. 2. Run `docker exec -it <container> which bwrap` and observe that no binary is found. 3. Use an OS-sandbox feature such as bwrap-backed shell tooling or Server Extensions. 4. Observe that the feature reports Bubblewrap is required and fails closed. 5. Install Bubblewrap with `apt-get install -y bubblewrap` and add `security_opt: [seccomp=unconfined, apparmor=unconfined]` to the service. 6. Observe `bwrap: Can't mount proc on /newroot/proc: Operation not permitted`; clearing this error requires `cap_add: [SYS_ADMIN]`. ## Environment - Marinara Engine version: 2.4.0 / ghcr.io/pasta-devs/marinara-engine:latest - Install type: docker - OS + version: Linux Mint 22.3 (Zena), Ubuntu 24.04 base; kernel 6.17.0-35-generic - Browser or app shell: Not provided ## Logs, screenshots, or video `which bwrap` returns no result. Initial error after manual installation: `bwrap: No permissions to create new namespace`. After setting seccomp and AppArmor to unconfined: `bwrap: Can't mount proc on /newroot/proc: Operation not permitted`. ## Additional context The host has `kernel.apparmor_restrict_unprivileged_userns = 0`. Manually installed packages are lost whenever the container is recreated. Adding `SYS_ADMIN` grants broad privileges. A maintainer replied that Bubblewrap likely needs to be added to the Docker image. Discord thread: Official Docker image bubblewrap issue Discord thread link: https://discord.com/channels/1417099416812392641/1533581598384193607 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-08-02T21:05:45.623Z] DarknessMyOldFriend: Okay, I am unsure if this a bug or me just not quite understanding what Prof. Mari is trying to do. Since the update to 2.4.0, I have been seeing Prof. Mari try to do a task via bubble wrap, notice it isn't installed, then go about it a different way. So she is able to do the things, it just takes a few failed commands to get there. I am unsure if this is something Prof. Mari was able to successfully before and now can not, or if she just started trying to use it after the update. Anyways, here's what Prof. Mari told me to put here: Summary: On a stock docker compose install from the official ghcr.io/pasta-devs/marinara-engine:latest image, anything that needs the OS sandbox (bwrap-backed shell tooling, Server Extensions) fails closed because bwrap isn't present in the image. Getting it working requires manually installing bubblewrap and relaxing the container's security profile — which shouldn't be necessary for a plug-and-play Docker deploy. Environment: Deploy: Docker Compose, image ghcr.io/pasta-devs/marinara-engine:latest Host OS: Linux Mint 22.3 (Zena) — Ubuntu 24.04 base Kernel: 6.17.0-35-generic kernel.apparmor_restrict_unprivileged_userns = 0 (host already permits unprivileged userns) Noticed after updating to the latest image Repro: Deploy the image via compose (nothing custom). docker exec -it <container> which bwrap → empty (binary absent from image). Any OS-sandbox feature reports Bubblewrap is required and fails closed. [Discord message: https://discord.com/channels/1417099416812392641/1533581598384193607/1533581598384193607] [2026-08-02T21:05:50.380Z] DarknessMyOldFriend: (Mari's reply continued) What I had to do to get partway: Install bubblewrap into the container on every recompose (apt-get install -y bubblewrap) — evaporates on container recreate. Add to compose service: security_opt: [seccomp=unconfined, apparmor=unconfined]. This changed the error from bwrap: No permissions to create new namespace → bwrap: Can't mount proc on /newroot/proc: Operation not permitted. That next error needs cap_add: [SYS_ADMIN] to clear — at which point I'm re-granting broad privileges on every recompose just to make the official image function. Questions for maintainers: Is bubblewrap supposed to be in the official image? If yes, this looks like a packaging regression (did a recent base-image bump drop it?). If it's intentionally host-provided, the Docker docs should loudly state that + document the required security_opt/cap_add for the OS sandbox to function in a container. Is there a supported/recommended way to run the OS sandbox in Docker without granting SYS_ADMIN? Ask: Either bundle bubblewrap in the image (+ document the needed container security options), or clearly document that the OS sandbox is unavailable in the default Docker setup so it's not a surprise. [Discord message: https://discord.com/channels/1417099416812392641/1533581598384193607/1533581618336235692] [2026-08-02T22:03:29.784Z] Marinara: Oh, yeah, I think we need to add it to the Docker. [Discord message: https://discord.com/channels/1417099416812392641/1533581598384193607/1533596128128270547] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:48:12 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2438
No description provided.