What is a good way to monitor the status of docker containers

cAdvisor doesnt try and maintain container state. It can tell when a container exists by examining the cgroup tree, but cant tell what is running in it, or anything else. Monitoring docker directly for this information is probably the best solution.
I tried to use the balck-box to use icmp to ping to determine whether the container is alive, but it takes some time to configure it. Is there any better monitoring scheme for the real-time status of docker containers

People often use a Grafana/Prometheus + specific exporters for the specific metrics they are interested in, or something like Telegraf (from InfluxData), which comes with build-in data collectors.

Both will require some time to understand and setup.

In case you still need (or anyone reading) an out of the box easy setup solution:

Is this not something for portainer ? https://www.portainer.io/

With a healthcheck for each container, portainer does the job, no ?

Hi @vita1552879

There is a way we are working using Apache NIFI to check the status of the container, whether it is using the particular port or not. If it’s not running, then you can receive a failure info through an email to your mailbox.
This check status may require a shell script to check it.
If it takes lock process, then you can use cronjob for the check status, but it won’t send any mail if it fails, we can only store the logs and we need to check the logs.