mirror of
https://github.com/Mintplex-Labs/anythingllm-docs.git
synced 2026-07-21 17:25:29 -04:00
[GH-ISSUE #75] Explanation for --cap-add for Docker
#35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @paulgear on GitHub (Jul 31, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anythingllm-docs/issues/75
Originally assigned to: @timothycarambat on GitHub.
Re: https://docs.useanything.com/installation/desktop/linux#install-using-docker
Can there be an explanation added as to why anythingllm needs the SYS_ADMIN capability, please?
@timothycarambat commented on GitHub (Jul 31, 2024):
It is for Puppeteer so you can scrape websites while still using the
sandboxcontainer for chromium. You would think it would be easier but it isn't without running--no-sandbox, which is less secure and since we dont know what websites people might scrape we should always sandbox@paulgear commented on GitHub (Aug 5, 2024):
@timothycarambat Thanks for the prompt response. Can you confirm: this is for running a headless chromium inside the Docker container? What is that used for?
@timothycarambat commented on GitHub (Aug 6, 2024):
When you scrape any links, this enables us to scrape the content from JS-rendered pages, which is the majority of web pages nowadays. To do this we use Puppeteer, which can use Chromium and it is unsafe to run outside of a sandbox. --cap-add allows us to run with sandboxing
Explanation for `--cap-add` for Dockerto [GH-ISSUE #75] Explanation for `--cap-add` for Docker