DockMon is a lightweight, terminal-based Docker container monitor that provides real-time insights into container metrics and logs—an alternative to Docker Desktop's graphical interface.
- tmux
- Python 3.x
- pipx (optional, if installation via pipx)
- Docker (must be installed and running)
- Clone the repository:
git clone https://github.com/slava-nikulin/dockmon.git
cd dockmon
- Install locally with make:
make install
pipx install git+https://github.com/slava-nikulin/dockmon.git
dockmon [--verbose]
--verbose
flag enables detailed logging to/tmp/docker_monitor.log
.
When not in a tmux session, DockMon will automatically create a new tmux session named docker-monitor with two windows:
- monitor: Displays the real-time table of Docker containers.
- script-logs: Tails the log file
/tmp/docker_monitor.log
.
- p: Pause/resume table updates.
- l: Open logs for the selected container (in a new tmux window).
- b: Open a shell in the selected container (in a new tmux window).
- up/down: Navigate through containers.
- q: Quit the monitor.
Pull requests and issues are welcome! If you want to contribute, please fork the repository and create a pull request with your improvements.
This project is licensed under the MIT License.