What might be causing a docker container to exit unexpectedly a few seconds after starting, despite the dockerfile building without any errors and the initial setup logs appearing normal? any specific logs or configurations to check to diagnose this issue? Thanks in advance!
What entrypoint and/or command is it running?
The Dockerfile specifies /app/start.sh
as the entrypoint. This script is supposed to start the main application process. The command in the dockerfile is just a simple CMD ["bash"]
.
bash
itself will not stay running, if you don’t have a tty/stdin connected, as it will not be able to receive any input, therefore it will quit.