Spring-boot application won't boot at startup inside docker

后端 未结 2 1914
一生所求
一生所求 2020-12-23 12:17

I am running a simple spring-boot application inside a docker container. At startup whether started with java -jar MY_JAR.jar or mvn spring-boot:run

2条回答
  •  滥情空心
    2020-12-23 13:03

    Got it! Once I installed haveged on the host, the process immediately moved forward, and spring booted fine. I will post more once I do a bit more research into how docker interacts with haveged on the host.

    In summary the following command issued on the host will fix the the issue:

    apt-get install haveged -y
    

    If anyone has a detailed understanding of this, feel free to post!

    The thing that I don't understand at the moment, is why the host machine needed extra code, and everything wasn't isolated within the docker container.

提交回复
热议问题