Docker Container Monitor is a lightweight CLI tool written in Go that monitors running Docker containers and their services. It provides real-time information about container states, checks service availability, and even supports remote monitoring via SSH. The project also includes a Python installer script for an automated setup.
- Docker Container Monitor π
Docker Container Monitor is a powerful yet lightweight CLI tool designed to help you keep an eye on your Docker containers and the services running within them. With features ranging from automatic container detection to remote monitoring support via SSH, this tool makes it easy to ensure that your containerized applications are running smoothly.
- β Automatic container detection No manual container naming needed.
- β Service health check Automatically verifies the accessibility of container services.
- β Remote monitoring support Monitor containers on remote hosts over SSH.
- β Real-time Docker events monitoring Subscribe to Docker events for dynamic updates.
- β Multiple output modes Choose from full status, container state, service availability, or event monitoring displays.
- β
Simple CLI commands
Use
monitorfor an instant overview. - β Systemd integration Run as a background service for continuous monitoring.
- β
Easy installation
Fully automated setup with
install.py.
- π³ Docker installed and running.
- π Python 3 installed.
- 𦫠Go installed (the installer will install it automatically if not present).
- π (Optional) SSH access for remote monitoring:
- A configured
~/.ssh/configfile, or - A private key for manual SSH authentication.
- A configured
- Clone the repository:
git clone https://github.com/Kobeep/Docker_Container_monitor.git
cd Docker_Container_monitor- Run the installation script:
python3 install.py- Verify installation:
monitor --helpmonitormonitor statemonitor servicemonitor remote --host <hostalias>monitor eventsmonitor events --jsonsystemctl status monitorπ Retrieves a list of running Docker containers using docker ps
π Gets exposed ports for each container
π Attempts an HTTP request to determine if the service inside the container is responsive
π Subscribes to Docker events for real-time monitoring.
π Displays results based on the selected mode
To remove the tool:
sudo systemctl stop monitor
sudo systemctl disable monitor
sudo rm /usr/local/bin/monitor
sudo rm /etc/systemd/system/monitor.service
rm -rf ~/Docker_Container_monitorπ‘ Contributions are welcome! Feel free to submit a pull request or open an issue.
π This project is licensed under the GNU GPL License.
π¨βπ» Author: Jakub Pospieszny
π GitHub: Kobeep


