Skip to content
Advertisement

Java SIGSEGV error when running from docker

I have no experience in Java and I can run my code successfully from the development. But only when I built the project and runs it from docker, I got an error like this.

JavaScript

I have followed the error message to use ulimit -c unlimited by adding it in the docker command: docker run --ulimit core=-1 --env-file -t my_project but still not helping and got another similar error

JavaScript

Here’s my Dockerfile

JavaScript

I have no idea if the error is related to the java environment or the docker or something else. Appreciate the help!

EDIT:

The error occurred when running on this line:

JavaScript

Advertisement

Answer

This is solved by using the debian based image instead of alpine.

Thanks to the folks in the comment section!

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement