Docker container exits automatically with exit code 139

Docker container which runs a java program(spring) crashes intermittently and each time it crashes I go in the restart the container after removing the core.1 dump file generated within the container.
This happens in the production environment.

Tried multiple times to reproduce the same in a similar environment but no luck.

As a workaround , the container is set to restart automatically each time it stops.

docker update --restart=on-failure:3 <container_id>

Can we have the core dump written to a location outside the container when it fails?

Host System details :
    Virtualization: vmware
  Operating System: Oracle Linux Server 7.5
       CPE OS Name: cpe:/o:oracle:linux:7:5:server
            Kernel: Linux 4.1.12-124.18.6.el7uek.x86_64
      Architecture: x86-6

Inside Container :
 **cat /etc/os-release**

PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION="8 (jessie)"

Open JDK version inside the container :

**java -version**

    openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2~bpo8+1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode

Please advice .

Source: StackOverflow