How To Monitor Health of a Running Container In Docker

This is very important to check the health of running containers in docker as you can monitor all the resources like Memory, CPU & Block I/O usage through the command line. how to check the health of the Docker container. you can also monitor container performance.

Check Out: Command To Check Swap Partition On Linux Server

We can also use Portainer management UI to manage the dockers with graphical mode. This is very important to keep an eye on the health of containers because you can see how much it’s using ram, CPU, and disk IO. if they need more, you can assign according to that analysis.

How To Monitor Health In Docker:

There’re lots of tools to monitor your Docker containers like ELK, Grafana, and Prometheus monitoring tool. fi you don’t want to install those monitoring tools, So you can use the below commands to check the health status of containers.

Check Out: Container Logs

First let’s check the container logs, As you can see I have Container called mysqltest

docker logs mysqltest

How To Monitor Health

Here you can check the Container Status,

Check Out: How To Create docker Cluster Using Swarm On Linux

docker stats mysqltest –no-stream

monitor container performance

docker top mysqltest

YouTube Link :

That’s it.  monitor container performance docker container check status

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment