orbstack / orbstack

Fast, light, simple Docker containers & Linux machines for macOS

Home Page:https://orbstack.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem using tigerbeetle image: `error: permissiondenied`

skyrpex opened this issue · comments

Describe the bug

From TigerBeetle docs, tried running the docker commands and they fail. Using docker works correctly, but not with orbstack.

To Reproduce

  1. Run
docker run -v $(pwd)/data:/data ghcr.io/tigerbeetle/tigerbeetle \
    format --cluster=0 --replica=0 --replica-count=1 /data/0_0.tigerbeetle
  1. Will end up unexpectedly with a error: PermissionDenied error.

Expected behavior

Should end correctly.

Diagnostic report (REQUIRED)

OrbStack info:
Version: 1.5.1
Commit: 4cfac15e1080617c70eb163966e1cb2009dac1c2 (v1.5.1)

System info:
macOS: 14.4.1 (23E224)
CPU: arm64, 10 cores
CPU model: Apple M1 Max
Model: MacBookPro18,2
Memory: 32 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-04-16T09-52-03.218795Z.zip

Screenshots and additional context (optional)

No response

Just add --privileged to the docker run command.

TigerBeetle requires io_uring. Docker 25.0.0+ blocks io_uring by default: moby/moby#46762

I've submitted a PR to fix the command in TigerBettle's docs: tigerbeetle/tigerbeetle#1995

Please add --security-opt seccomp=unconfined to the docker run command. This keeps most security features intact, as opposed to --privileged.