nzamani / sap-cloud-connector-docker

SAP Cloud Connector in Docker
77 stars 55 forks source link

SAPCC Container exits #24

Open alaxalves opened 4 years ago

alaxalves commented 4 years ago

I noticed that after X time the container stops for itself. Is there a way to keep the container running ? Is that a default config of SAP?

nzamani commented 4 years ago

I've not noticed that so far. The container would stop if SAPCC stops. So my first assumption would be that for some reason SAPCC stops. You could have a docker setup that monitors the SAPCC container and in case of an unexpected shutdown it simply restart the SAPCC container. However, I'm more interested to find out what causes the SAPCC container to stop.

Do you have any more details? Is it always the same period of time? How long is the timeframe? Did anyone else notice this behavior?

alaxalves commented 4 years ago

Well I have set the --restart=always flag to the initialization command and it worked the way I wanted. The timeframe seems to be of 24h, so after 24h up the container exits, and it seems to always be this amount of time.

nzamani commented 3 years ago

I've updated the dockerfile. Would you mind checking whether the new one still stop after x time?