Problem

How do I get a core file when a Container crashes?

Solution

The problem is that the default limit for the size of core files is smaller than a typical Container core.

Do the following before starting your container:

  • ulimit -c 1000000000

To test:

  • start a container
  • check the PID
  • > kill -SIGSEGV

You should get the following message in the window where the container runs:

  • Segmentation fault (core dumped)

You can find more details here: