Not able to deploy daemon java process in Lightsail Container Service

0

I have a daemon java process runs ok on my local machine with Docker. But failed the deployment on Lightsail Container Service. The error message seems indicate the deployment "took too long" but the process was actually started correctly, just because the java process hangs in the terminal due to it is a daemon and is supposed to hangs and waiting for new jobs but Lightsail thought it is still trying to spin up and failed the deployment after x mins.

I wonder how could I fix it? Maybe does Lightsail container support detached mode? will that help?

thanks for any insight!

  • Hello, does this service expose a public endpoint? If so, then the health check needs to be configured to prevent Lightsail from thinking the deployment has failed. If there's no public endpoint, then you might want to make sure that the process that the container binds to does not exit prematurely.

질문됨 2년 전86회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠