问题描述
如何在没有特权模式的情况下更改docker容器内的/proc/sys/kernel/core_pattern
文件?是否有任何标志要传递给docker daemon
或docker run
或与Dockerfile
相关的任何东西?
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
?
推荐答案
内核不支持每个容器的模式.有一个修补程序,但是不太可能很快就会发布.基本问题是核心模式支持将管道用于专门为此目的而产生的过程.但是产生它的代码尚不知道如何处理容器.由于某种原因,要求目标文件的简化模式处理被认为不可接受.
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.
这篇关于在docker容器中更改/proc/sys/kernel/core_pattern文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!