I start a docker as follows -
sudo docker run -p 8080:8080 --restart always -v volume:volume
(Keycloak is a authentication service and I am using their docker img)
I am running it in interactive mode. Now, what I see is that after about 7-8 hrs, the docker just shuts down.
I see that the docker container restarted once. Saw it in tge logs.
After some time (about 7-8 hrs) it just went down. All I see in the logs is:
The JBoss App server received a HUP signal.
After this all the services running on this docker container started going down.
Almost looks like this container really went down and never started again inspite of using --restart always.
Some questions -
Could this happen because I ran it in interactive mode? Here, it is dumping logs continously to a console - even if I close it. If so, will running the docker with “-d” option solve this?
How do I look for system logs in the container? I know you can just start the stopped container manually again. I did that and then checked for system logs. But in the /var/log/ folder, I dont see anything at all. All I see is some logs that are displayed on console - basically the app logs from the service I am running.
Any other inputs or suggestions for this issue?