browser-search icon indicating copy to clipboard operation
browser-search copied to clipboard

docs: recommend core-dump, log-rotation, profile-volume and telemetry flags for the Camofox container

Open Johell1NS opened this issue 1 month ago • 1 comments

Problem

The documented docker run for Camofox has no protection against core-dump accumulation. The Firefox engine (Camoufox) occasionally crashes and restarts itself; on hosts with core_pattern=core and Docker's LimitCORE=infinity, each crash writes a core.* file (10 MB to 1+ GB) into /app inside the container's writable layer. Over a few months this can fill tens of GB of disk, and the files are only removed when the container is recreated.

Proposal

Update docker/setup.md and data/advanced-browsing-reference.md:

  • add --ulimit core=0
  • add log rotation: --log-opt max-size=10m --log-opt max-file=3
  • add a profile volume: -v camofox-data:/root/.camofox (keeps cookies/profiles when the container is recreated)
  • add -e CAMOFOX_CRASH_REPORT_ENABLED=false (disables external crash reports)
  • recommend pinning a version tag instead of latest
  • note that --memory is ignored on hosts without memory cgroup support
  • add a short "Updating the container" section (pull, backup tag, recreate, verify)

Also in scripts/check.sh: the "container not found" hint prints ...camofox-browser:latest; point to docker/setup.md instead, so it does not contradict the version-pinning advice.

Johell1NS avatar Oct 21 '26 09:10 Johell1NS

Released in v3.2.0.

Johell1NS avatar Oct 21 '26 12:10 Johell1NS