docker::c++程序添加corecump配置。
1、在dockerfile中添加: RUN echo "kernel.core_pattern = /cms/log/core.%e.%p.%t">/etc/sysctl.conf //指定coredump文件路径/cms/log/ RUN sysctl -p //使设定生效 2、docker run 时 添加 --privileged=true 如:docker run --name coredumpDemo --privileged=true -v /usr/local/cms_yd/log:/cms/log -v /etc/localtime:/etc/localtime -d coredump
相关推荐
王道革 2020-11-25
bwyyziq 2020-11-22
pigsmall 2020-11-19
changecan 2020-11-19
helloWorldAndYou 2020-11-16
nginxs 2020-11-14
红石丶 2020-11-13
WanKaShing 2020-11-12
yangkang 2020-11-12
滴水穿石点石成金 2020-11-12
张荣珍 2020-11-12
wuxunanjing 2020-11-11
魅惑青花瓷 2020-11-11
lihongtai 2020-11-09
yangkang 2020-11-09
worldsnow 2020-11-06
MichaelJScofield 2020-11-06
TaoTaoFu 2020-11-06