Warning
ds
is now stable and no longer under active development. It is feature-complete and should function as expected. If you encounter any issues, please open an issue, and pull requests are welcome.
ds
provides real-time monitoring of Docker container statistics, rendering them as charts in the terminal. It serves as a visual alternative to the standard docker stats
command, making it easier to analyze resource utilization at a glance.
This project was inspired by the need for a visual statistics tool similar to Docker Desktop's, especially when using lighter container management solutions like OrbStack.
- Real-Time charting: Visualize CPU, memory, network, and I/O usage with dynamic charts.
- Customizable Views: Choose between compact and full layouts to control the level of detail.
- Container Filtering: Display statistics for all containers or specify a subset by name or ID.
- Rust-Powered: Built with Rust for performance and reliability.
Note
ds
is available on crates.io as docker-stats
.
cargo install docker-stats
Ensure you have Rust and Cargo installed.
-
Clone the repository:
git clone https://github.com/rafaelrcamargo/ds cd ds
-
Build and install the binary:
cargo install --path .
-
Run the application:
ds
The default command displays statistics for all running containers:
ds
To view all available options, run:
ds --help
For a minimal overview of all containers, use the compact flag:
ds -c
To monitor specific containers with full details, including network and I/O charts, provide their names or IDs:
ds -f 5f03524a8fbe api-1
ds
may experience a startup delay while it establishes a connection to the Docker daemon and begins receiving statistics. This behavior is inherent to how docker stats
operates and is consistent with the performance of both OrbStack and Docker Desktop.
The network chart does not display data for containers running in network_mode: host
. Metrics will only be populated for containers using the bridge
network. This is a known limitation related to how Docker exposes network statistics.
For more context on network_mode: host
on macOS, see the discussion in the Docker roadmap.
Contributions are welcome! If you have suggestions or find a bug, please open an issue or submit a pull request.
This project is licensed under the Apache License 2.0.