Docker Monitoring Docker #114

Closed
opened 2025-11-06 11:26:30 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @satyabratabharati on GitHub (Mar 16, 2022).

I have developed a tool which can monitor another container and provide the memory/cpu/disk statistics of a running container.

I need to pass the dockerID of a container as input to my program. But the issue is how do I know if the container being monitor is restated. in this case the dockerID has changed.

How do I know if a container is restarted and fetch the dockerID every time the container is starts/restart.

Originally created by @satyabratabharati on GitHub (Mar 16, 2022). I have developed a tool which can monitor another container and provide the memory/cpu/disk statistics of a running container. I need to pass the dockerID of a container as input to my program. But the issue is how do I know if the container being monitor is restated. in this case the dockerID has changed. How do I know if a container is restarted and fetch the dockerID every time the container is starts/restart.
Author
Owner

@welcome[bot] commented on GitHub (Mar 16, 2022):

Thanks for opening your first issue here!

@welcome[bot] commented on GitHub (Mar 16, 2022): Thanks for opening your first issue here!
Author
Owner

@mashb1t commented on GitHub (Mar 16, 2022):

Hey @satyabratabharati, i hope you can understand that this repository is not ment to provide support for specific implementation-problems for Docker and also should not be used for that.

Nevertheless you may use a mount to the Docker socket for adding an event listener to changes of containers you listen to (e.g. like in the nginx reverse proxy) when a container is started/stopped with a specific env var value.

All the best for the implementation!

@mashb1t commented on GitHub (Mar 16, 2022): Hey @satyabratabharati, i hope you can understand that this repository is not ment to provide support for specific implementation-problems for Docker and also should not be used for that. Nevertheless you may use a mount to the Docker socket for adding an event listener to changes of containers you listen to (e.g. like in the nginx reverse proxy) when a container is started/stopped with a specific env var value. All the best for the implementation!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-docker#114