A terminal based dashboard for Docker that monitors multiple hosts in real-time.
dtop
provides a comprehensive summary of all Docker containers running on your system, displayed directly in your terminal. Get instant visibility into container status, resource usage, and key metrics without leaving the command line. It supports ssh, tcp and local connections and integrates with Dozzle for container logs.
- Real-time monitoring - Live updates of container status and metrics
- Lightweight - Minimal resource footprint
- Hyperlinks - Clickable links to container logs and stats using Dozzle
- Add support for disk IO.
- Add support for Kubernetes clusters
- Created detailed view, but not to compete with Dozzle
- Search or filter for containers
- Sort containers by name, status, or resource usage
- Configurable columns and saving preferences
dtop
can be installed through multiple package managers or by downloading the binary directly.
This is recommended for macOS and Linux users. Automatic updates are handled by Homebrew.
brew install --cask amir20/homebrew-dtop/dtop
dtop
supports prebuilt binaries for Windows. You can install it using Scoop.
scoop bucket add amir20 https://github.com/amir20/scoop-dtop
scoop install amir20/dtop
Downloads the latest release from GitHub.
curl -sSfL https://amir20.github.io/dtop/install.sh | bash
Downloads the latest release from source with Go.
go install github.com/amir20/dtop@latest
By default, dtop
will connect to the local Docker daemon using /var/run/docker.sock
. DOCKER_HOST
is also supported to connect to other hosts.
--help
- Display help information--hosts
- A comma separated list of hosts to connect. Defaults tolocal
dtop
supports command line flags or configuration file. The configuration file reads from the following locations:
./config.yaml
~/.dtop.yaml
~/.config/dtop/config.yaml
Note
Both yaml
and yml
files are supported.
Here's an example configuration:
hosts:
- host: local
dozzle: https://localhost:3100/ # this is optional
- host: tcp://host2:2375
dozzle: https://host2:3100/
- host: ssh://user@host
dozzle: https://host:8080/
- Local Docker - Monitor containers running on the local Docker daemon using
--hosts local
- Remote Docker - Monitor containers running on remote Docker daemons via SSH using
--hosts tcp://host2:2375
- SSH Tunneling - Establish an SSH tunnel to a remote host and monitor containers running on it using
--hosts ssh://user@host
You can connect to multiple hosts by separating them with commas:
dtop --hosts local,tcp://host2:2375,ssh://user@host
dtop
supports linking to container logs using Dozzle. To enable this feature, specify the Dozzle URL in the configuration file or command line flags. Once enabled, dtop
will automatically open the Dozzle UI when you click on a container. dtop
leverages OSC8 to send the URL to the terminal. iTerm, Ghostty and a few other terminals supports this with cmd+click
or ctrl+click
on the container name. For tmux, you need to have tmux
version 3.4 or higher installed with hyperlinks
enabled. This is usually enabled with set -as terminal-features ",*:hyperlinks"
.
I am a big fan of ctop. ctop
inspired me to create Dozzle but in the browser. However, it seems like ctop
is no longer maintained. I considered forking ctop
but deploying with same name would be challenging. I created dtop
for my personal use case. I often want to see all my containers at a glance across multiple hosts. dtop
achieves that by supporting remote hosts via ssh
or tcp
. Additionally, since I use Dozzle, I integrated Dozzle into dtop
to provide a seamless experience for monitoring container logs.
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details.