Link to home
Start Free TrialLog in
Avatar of Cloud Geek
Cloud Geek

asked on

Docker container management solution

We've NodeJS applications running inside docker containers. Sometimes, if any process gets locked down or due to any other issue the app goes down and we've to manually login to each container n restart the application. I was wondering if there is any sort of control panel that allow us to easily and quickly restart those and see the whole health of the system.

Please Note: we can't use --restart flag because essentially application doesn't exist with exist code. It run into problem like some process gets blocked, things are just getting bogged down vs any crashes and exist codes. That's why I don't think restart policy will help in this scenario.
Avatar of Anthony Garcia
Anthony Garcia
Flag of United States of America image

If you wanted to monitor the performance of our containers you could use something like datadog.
https://www.datadoghq.com/lpgdts/ You install the agent and then you can monitor and see what is the bottleneck that is causing your containers to stop working.
However if you wanted to restart them automatically you would need to have something watching the logs of the datadog agent and issue a restart command. I don't think that is something built into datadog, but you would at least get an alert that would tell you when something is going wrong as well as graphs so you can further troubleshoot.

It sounds like you are looking for a docker GUI for managing your cluster, but I don't know of any that automatically restart an application.
https://portainer.io/overview.html#demo

This one has some monitoring built in and it seems simple to install since it is also a docker image. You would at least not need to log into the instance to restart them and the monitoring might give you some clues of what is going wrong.

If you try portainer, but it is missing something you need or you don't like it, you can find alternatives to it using this site. https://alternativeto.net/software/portainer/
Avatar of David Favor
Simple solution...

1) Setup a CRON job to run every minute.

2) Use curl to test if your NodeJS App code is working.

3) If your app has died, just restart NodeJS or App or however you normally start your code.
Please update this question as to whether problem is resolved or persists.

Thanks.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.