I started a docker container which is centos7 on coreos, When the main process in docker container crashed, the docker container quit. I find the coredump file in /var/lib/systemd/coredump:
core@ip-172-31-5-189 /var/lib/systemd/coredump $ du -sh core*
528K core.cn.0.47dc39223f7a4cefbc3b5bdd766b0815.3313.1450332630000000.xz
528K core.cn.0.47dc39223f7a4cefbc3b5bdd766b0815.3422.1450332657000000.xz
But the filesize is not correct, usually the core should be >200M. Once I find one correct size corefile in this dir, but soon it went away, also it's a hidden file, why???:
-rw-r----- 1 root root 343M Dec 17 06:21 .#core.cn.0.47dc39223f7a4cefbc3b5bdd766b0815.4324.1450333260000000b2a87dbfbf4f0ba1
core@master ~ $ cat /proc/sys/kernel/core_pattern
|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %e
core@master ~ $ ulimit
unlimited
Anyone can help? Thanks.
I used "coredumpctl -o xxx.coredump dump" which is able to dump the original corefile