8

How can i change /proc/sys/kernel/core_pattern file inside the docker container with out privileged mode? Are there any flags to be passed to docker daemon or docker run or anything related to Dockerfile?

Tejaswi Burgula
  • 329
  • 3
  • 14
  • lf you get here but are indifferent about the privileged mode, this might help: https://stackoverflow.com/a/68480387/517914 – SimonSimCity Jul 22 '21 at 07:03

1 Answers1

8

The kernel does not support per-container patterns. There is a patch for this, but it is unlikely to go in any time soon. The basic problem is that core patterns support piping to a dedicated process which is spawned for this purpose. But the code spawning it does not know how to handle containers just yet. For some reason a simplified pattern handling which requires a target file was not deemed acceptable.

  • 3
    3 years later and still I don't see this patch being merged. https://lore.kernel.org/patchwork/patch/643798/ – hshib Feb 21 '19 at 18:43