Re-pack of the fluent-bit container with dac-read permissions set on the image level.
  • Dockerfile 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-24 19:01:10 +01:00
komodo Update komodo/builds.toml 2026-08-20 15:23:57 +02:00
Dockerfile Merge pull request 'Update debian:trixie-slim Docker digest to 8aa5a7b' (#15) from renovate/debian-trixie-slim into main 2026-11-24 19:01:10 +01:00
README.md Add project description and renovate housekeeping bot. 2026-08-18 17:35:52 +02:00
renovate.json Update renovate.json 2026-08-20 15:27:23 +02:00

Why this image exists - featuring Sonnet 5

Upstream fluent-bit can't read /var/lib/docker/containers/**/*.log as a non-root user — those directories are root:root, and POSIX default ACLs don't retroactively fix directories Docker already created, nor do they survive Docker's own creation mode on new container directories.

Fix requires BOTH:

  1. cap_add: [DAC_READ_SEARCH] in the compose file (puts the capability in the container's bounding set)
  2. setcap cap_dac_read_search+ep on the fluent-bit binary itself (this image) — required because a non-root process doesn't inherit an added capability into its effective set without a file capability; ambient-set propagation for cap_add alone is unreliable here.

Either alone is not sufficient. Confirmed via /proc/<pid>/status → CapEff.