Skip to content

Commit 65c2faf

Browse files
committed
Add cgroupfs mount to example self-test command.
1 parent cafc273 commit 65c2faf

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,19 @@
2020
"gotmp",
2121
"Lockdown",
2222
"maxsplit",
23+
"memfd",
2324
"mountinfo",
2425
"newcgroup",
26+
"NEWNS",
2527
"preexec",
2628
"procs",
2729
"Protip",
2830
"ptrace",
2931
"pydantic",
3032
"rbind",
33+
"RDONLY",
3134
"RDWR",
35+
"reexec",
3236
"sandboxing",
3337
"selftest",
3438
"SHLVL",

docs/setup.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ $ git clone https://github.com/EtiennePerot/open-webui-code-execution && \
7676
--security-opt=seccomp=unconfined \
7777
--security-opt=apparmor=unconfined \
7878
--security-opt=label=type:container_engine_t \
79+
--mount=type=bind,source=/sys/fs/cgroup,target=/sys/fs/cgroup,readonly=false \
7980
--mount=type=bind,source="$(pwd)/open-webui-code-execution",target=/selftest \
8081
ghcr.io/open-webui/open-webui:main \
8182
python3 /selftest/open-webui/tools/run_code.py --self_test

0 commit comments

Comments
 (0)