spar/dpad
Sobre
Stop juggling docker ps, stats and logs. A terminal UI and CLI for Docker and Podman.
Sistemas e infraestruturaCrescimento medido de estrelas
- em 24 h
- Coletando histórico
- em 7 dias
- Coletando histórico
- em 15 dias
- Coletando histórico
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Originaldpad
Stop juggling docker ps, stats and logs.
One screen to rule them all, for Docker and Podman.
dp adds live stats with sparklines, multi-container logs, Compose project controls,
a map of your reverse proxy routes and networks, and a full-screen terminal UI.
Anything it doesn't enhance goes straight to docker, or to podman where Docker isn't installed.
brew install spar/tap/dpad
No Homebrew, or on Windows? Install has a one-line command for every platform.
Install · Quick start · Features · Commands · Compared with other tools · Docs
Install
dpad needs a running Docker engine or Podman. It uses the docker CLI when
it's installed and podman otherwise. Every method installs both dpad and
the short dp command. Pick one line:
| Platform | Method | Command |
|---|---|---|
| macOS, Linux | Homebrew | brew install spar/tap/dpad |
| macOS, Linux, WSL2 | Install script | curl -fsSL https://dpad.sh/install | sh |
| Windows | Scoop | scoop bucket add spar https://github.com/spar/scoop-bucket; scoop install spar/dpad |
| Windows | PowerShell script | irm https://dpad.sh/install.ps1 | iex |
| Any | Release archive, go install or source |
see below |
Then run dp. To check the install, run dp --version.
Homebrew
brew install spar/tap/dpad
Upgrade with brew upgrade dpad.
Scoop
scoop bucket add spar https://github.com/spar/scoop-bucket
scoop install spar/dpad
Upgrade with scoop update dpad.
Install scripts
For machines without a package manager. Run the same command again to upgrade. The scripts detect amd64 or arm64, check the download against the release's SHA-256 checksum, and install for your user only.
# macOS, Linux or WSL2: installs into ~/.local/bin
curl -fsSL https://dpad.sh/install | sh
# Windows PowerShell: installs into %LOCALAPPDATA%\Programs\dpad and adds it to your PATH
irm https://dpad.sh/install.ps1 | iex
dpad.sh/install and dpad.sh/install.ps1 redirect to
scripts/install.sh and
scripts/install.ps1 in this repository, so you can
read them first. If your shell can't find dp after the macOS or Linux script,
add export PATH="$HOME/.local/bin:$PATH" to your shell profile.
Release archives
Download the archive for your OS and CPU from
GitHub Releases
(.tar.gz for macOS and Linux, .zip for Windows), check it against
SHA256SUMS and put the dpad binary on your PATH.
Releases also carry signed build provenance. With the GitHub CLI you can check that an archive was built by this repository's release workflow:
gh attestation verify dpad-linux-amd64.tar.gz --repo spar/dpad
From source
To build from source with Go 1.26.7+, run:
git clone https://github.com/spar/dpad.git
cd dpad
make install
Or install the latest release with Go. This puts only the dpad command in
$(go env GOPATH)/bin, so add alias dp=dpad to your shell profile:
go install github.com/spar/dpad@latest
Shell completion, other install locations and troubleshooting are covered in Running locally.
Quick start
dp # full-screen TUI
dp ps -a # colored, sortable ps
dp stats --sort mem # live stats, biggest memory users first
dp logs -f api worker # Compose services or containers, one stream
Want something to look at? make demo-up starts four demo Compose projects
(a web shop, a monitoring stack and a homelab behind Traefik and Caddy, about
20 containers) that exercise every feature (busy CPUs, memory near its limit,
health checks, crash loops, JSON and logfmt logs, proxy routes).
make demo-down removes them.
With Podman
dp works with Podman through its Docker-compatible API socket, rootful or
rootless, locally or over SSH. On Linux, enable the socket once and run dp;
it finds the Podman socket by itself when there is no Docker one:
systemctl --user enable --now podman.socket
dp
On a Mac, Podman runs in a podman machine VM. Point dp at its socket:
export DOCKER_HOST=unix://$(podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}')
dp
Projects started with podman-compose are updated, edited and taken down with podman-compose. To run the demo on Podman, start each project with it:
for p in edge bookshop monitoring homelab; do (cd testenv/$p && podman-compose up -d); done
Rootful sockets, SSH servers and the differences from Docker are in Using dpad with Podman.
Why dp
docker ps and docker stats are fine for a quick look. Once you run more than
a handful of containers, you start piping through grep, opening one terminal
per docker logs -f, and re-running commands to see what changed. dp keeps
the commands you already know and fills those gaps:
docker |
dp |
|
|---|---|---|
| Colored container states and a health column | ✓ | |
Sort ps, images and stats by any column |
✓ | |
| Live CPU and memory graphs on every running container in the list | ✓ | |
| CPU and memory bars, plus two-minute sparklines | ✓ | |
| Network and disk throughput per second | totals only | ✓ |
| Logs from several containers interleaved, with level highlighting | one container¹ | ✓ |
| Regex filter over buffered logs, with match highlighting | ✓ | |
| Compose projects: grouped stats, project logs, start/stop/restart, image updates | per project dir¹ | ✓ |
| Edit a Compose file, check it and review the diff before saving, also over SSH | ✓ | |
| Map of which domains reach which containers through Caddy, Traefik or nginx, and the networks between them | ✓ | |
| Container details with environment (secrets masked), DNS names, aliases and labels | raw JSON | ✓ |
| Events timeline, volume and network usage, container shells | separate commands | ✓ in one UI |
Prune with a list of exactly what will be removed, up to a full system prune -a |
✓ | |
| Your own commands on a key, mouse support | ✓ | |
| Every other command and flag | ✓ | ✓ passed through |
¹ docker compose logs and docker compose up cover one project at a time, from its directory.
dp talks to the Docker Engine API directly and uses your existing contexts and
DOCKER_HOST. Podman serves the same API, so the same features work there. Switching contexts inside dp does not change the Docker CLI's
saved current context.
Features
Live stats you can sort and read at a glance
- CPU and memory bars that turn yellow and red as usage climbs.
- Network RX/TX and disk read/write as rates per second; press
tfor cumulative totals. - Sort by CPU, memory, network, disk, PIDs or name with
s, reverse withr. - CPU and memory sparklines for the selected container, with average and peak over the last two minutes.
- Compose projects collapse into one summary row (
vtoggles the flat view). - Streams that stall or drop reconnect on their own; stale values show
—instead of old numbers.
Logs from a whole project in one stream
- Follow one container, several (
dp logs a b c), or a whole Compose project (enteron a project row, ordp logs <project>). dp logsaccepts container names and IDs, Compose service and project names, and unique name prefixes, sodp logs webworks without typingmyapp-web-1.- Every container gets a stable color; stderr lines are marked with
┃. - Log levels are highlighted in plain text, JSON, logfmt and nginx formats.
- Press
/to filter by regular expression. Matches are highlighted and new lines are filtered as they arrive. wwraps long lines andtshows timestamps.ctrl+ssaves the lines on screen, filter applied, to a plain text file for a bug report.- Project logs follow containers as they are scaled, recreated or restarted, and resume from the last timestamp after a reconnect.
See how traffic reaches your containers
Mopens the Map: domains, reverse proxies, Compose projects and the networks they share, joined by wires.- Routes are read from Caddy, Traefik, caddy-docker-proxy, Nginx Proxy Manager, SWAG, nginx-proxy and plain nginx, from labels or from the proxy's own config.
ttraces the selected container's routes and networks.tabswitches to a routes list, which warns when a routed container is also published on a host port, and to a grid of containers by network.- Narrower than 120 columns, the Map shows one container at a time with its routes, networks, addresses and peers.
dp graph saves the same map as one self-contained web page and opens it in your
browser. Click a domain, proxy, container or network to trace its paths.
-f mermaid|d2|dot|json writes it for other tools instead.

Everything else in one place
|
Containers The host panel on top shows the machine's CPU, memory, load and uptime next to what Docker uses ( t hides it). Below it, live CPU and memory graphs for each running container, then state, uptime and ports in color, with a dot before the name for health. Start, stop, restart, pause, kill and remove with a confirmation; e opens a shell.
|
Compose projects Grouped by project and service, with running and unhealthy counts. u previews and runs pull + up -d.
|
|
Details d turns docker inspect into sections: state, Compose info, each network with its IP, DNS names and aliases, ports, environment with secrets masked (s reveals them), labels, mounts and health checks. Two columns in a wide terminal, section tabs in a narrow one.
|
Events A live timeline of lifecycle and health events, filterable by container, project, service or event type. |
|
Prune X lists the stopped containers, unused images, volumes, networks or build cache a prune would remove, or all of them at once like docker system prune -a, then removes exactly those after y.
|
Edit Compose files e on a project opens its Compose file in the built-in editor, with YAML colors, find and go to line, or in your own editor. dpad checks the result with docker compose config, shows what changes and a diff, then saves it and can go straight on to an update. Works for projects on an SSH host too.
|
|
Settings o lists the theme, Docker context, editor, CPU graph style (braille, bars, meter or off), host panel, proxy config, icons, mouse setting and config file. enter on a row opens its picker or cycles the graph style, host panel, proxy config or icon mode. Theme, editor, graph style, host panel, proxy config and icons are saved to config.yaml; a context choice lasts for the session.
|
System I shows the daemon's host and engine: OS, kernel, cores, memory, uptime and load, Docker and API versions, runtime, storage and cgroup drivers, CPU, memory and disk usage, and what docker system df reports, with reclaimable space. Over SSH it describes the server.
|
|
Custom commands and mouse Bind your own commands to keys in ~/.config/dpad/config.yaml, run against the selected container or Compose project. Click tabs and rows, double-click to open, scroll with the wheel. See Custom commands.
|
The Images, Volumes and Networks tabs show which containers, running
or stopped, use each image, volume or network. Press c to switch to another
Docker context for the current session.
A better docker for everyday commands
The CLI commands keep Docker's flags and add sorting and color. Output stays plain
when piped, when NO_COLOR is set, or with --no-color, so scripts keep working.
Remote daemons over SSH
DOCKER_HOST=ssh://me@server dp
dp opens one SSH tunnel to the remote socket and draws the UI locally, so
moving through lists doesn't wait on the network. Your ~/.ssh/config, agent and
known hosts apply, rootless sockets work (ssh://me@server/run/user/1000/docker.sock),
dropped connections reconnect in the background, and e edits a project's
Compose file on the server through the same connection. The host panel and
System screen read the server's /proc over SSH, so they show the server's CPU,
memory, load and disk, not your laptop's. Details are in
Daemon connection.
Themes
dpad ships eleven color themes, from the default that follows your terminal's
palette to matrix, amber CRT, black and white, high contrast and two light
themes, including ink, black on white like an e-ink screen.
Press C (or open settings with o) to preview them live and save your pick, or set theme: matrix in config.yaml. A
theme is one YAML file, so you can write your own or contribute one. See the
gallery and theme guide.
All screenshots are real, unedited output from the bundled demo environment (make demo-up), captured with make screenshots.
Commands
| Command | What it adds over docker |
|---|---|
dp |
Full-screen TUI: Containers, Images, Stats, Projects, Events, Volumes and Networks tabs, with filtering, details, logs, shells and confirmed actions, plus the Map, System and Prune screens |
dp ps [-a] [-f name=value...] [--sort name|created|status] [-r] |
State colors (running, exited ok/error, paused, restarting), a health badge, and compact 8080→80/tcp ports |
dp images [--sort size|created|name] [-r] |
Human sizes and a total-size footer; dangling images are dimmed |
dp stats [--sort cpu|mem|net|io|pids|name] [-r] [--no-stream] [--totals] |
Live sorting, CPU/memory bars, network/disk throughput; t toggles rates and totals |
dp graph [-f html|mermaid|d2|dot|json] [-o FILE] |
Maps Compose projects, shared networks and reverse proxy routes (Caddy, Traefik, Nginx Proxy Manager, SWAG, nginx-proxy, nginx) as a self-contained web page, or as a graph for other tools. M shows the same map in the TUI |
dp themes |
Lists the color themes with a swatch of each; pick one with --theme, DPAD_THEME or theme: in config.yaml |
dp logs [-f] [-n N] [-t] [--since T] [--grep RE] TARGET... |
Accepts containers, Compose services and projects, and unique name prefixes. Interleaves containers with colored name prefixes, highlights log levels, marks stderr with ┃, highlights --grep matches |
Sorts default to the natural direction for each key: biggest first for numbers,
A to Z for names. -r reverses.
Passthrough. These go to docker unchanged, so you can type dp wherever you
would type docker:
- Commands
dpdoesn't implement:dp network ls,dp exec -it web sh - Flags
dpdoesn't implement:dp ps --format '{{.Names}}',dp ps -q - Docker global flags:
dp --context prod ps dp stats web db, because docker already handles selecting containers
Main TUI keys
| Key | Action |
|---|---|
tab / 1–7 |
switch tab |
↑↓ j k pgup pgdn g G |
move |
/ |
filter the current tab |
s / r |
cycle sort key / reverse |
enter |
follow logs of the selected container or Compose project |
d |
details |
e |
open a shell in the container |
y |
copy the row's name, ID, image, IP or path, or a value in details, to the clipboard (works over SSH with OSC 52) |
S / x / R |
start / stop / restart, after a y/N confirmation |
P / K / D |
pause / kill / remove (S resumes a paused container) |
e on a project |
edit its Compose file in the built-in editor or your own, check it, then save and update (Projects tab) |
D on a project |
preview and run docker compose down, keeping volumes unless you press v (Projects tab) |
u / U |
update the selected / all Compose projects: pull, then up -d, with live progress (Projects tab) |
M |
the Map: proxy routes, Compose projects and shared networks |
I |
the System screen: host, engine and docker system df |
X |
preview a prune, then remove exactly what it lists |
c |
choose a Docker context |
C |
choose a color theme, previewed live |
o |
settings: theme, Docker context, editor, CPU graph style, host panel, proxy config, icons, mouse, config file location |
? |
help for the current view |
The full key list and the behavior of each tab are in docs/usage.md.
Performance
dp is built to stay responsive with hundreds of containers and to cost little
while it sits open in a terminal tab.
How it stays light
- One Docker event subscription drives the container lists, Projects and the Events timeline. Bursts of events are coalesced into at most one list refresh per second.
- Stats updates are batched before redrawing. Project grouping, rates and sparklines are computed from the same stream and add no Docker requests.
- Buffers have fixed limits: 5,000 log lines, 1,000 events, and 120 one-second history buckets (about 6 KiB) per container.
- The TUI renders at up to 120 frames per second, and frames that haven't changed write nothing. Over SSH, event and log redraws are batched further.
Measured with the 19-container demo running
| Result | |
|---|---|
| Binary | 11.7 MiB on linux/amd64, static and stripped (CGO_ENABLED=0) |
| Memory | about 27 MB resident with the TUI open and live stats streaming |
| CPU | about 2% of one core in the same state (30-second average) |
dp ps -a |
115 to 118 ms, against 141 to 147 ms for docker ps -a (mean of 50 runs) |
dp images |
100 to 102 ms, against 111 to 115 ms for docker images (mean of 50 runs) |
Microbenchmarks with 1,000 containers (go test -bench)
| Operation | Time per op |
|---|---|
| Move the selection and redraw the Containers tab (140×40 terminal) | 0.25 ms |
| Move the selection and redraw the Projects tab (100 projects) | 0.24 ms |
| Redraw the Stats tab | 0.07 ms |
| Apply a stats batch for 1,000 containers, then redraw (100 collapsed projects) | 3.3 ms |
| Apply a stats batch for 1,000 containers, then redraw (flat view) | 24 ms |
| Record one sparkline sample | 22 ns, 0 allocations |
| Compute network and disk rates for one sample | 53 ns, 0 allocations |
Measured on a 4-vCPU Intel Xeon @ 2.10 GHz Linux VM with Docker Engine 29.9 and Go 1.26.11, on 26 November 2026. Your numbers will differ; reproduce the benchmarks with
go test -run '^$' -bench . -benchmem ./internal/....
Compared with other tools
lazydocker,
dry, ctop,
oxker and
dtop are all good terminal tools for Docker.
This table covers where they differ from dp:
| dpad | lazydocker | dry | ctop | oxker | dtop | |
|---|---|---|---|---|---|---|
Also replaces docker commands in the shell |
✓ | |||||
| Compose projects view | ✓ | ✓ | ✓ | column only | ||
| Logs from several containers in one stream | any mix of containers, services and projects | per service or project | per service or project | |||
| Search or filter logs | live regex filter | search | search | |||
| Events timeline | ✓ filterable | last 10 events | ||||
| Prune | ✓ with a preview | ✓ | ✓ | |||
| Custom commands | ✓ | ✓ | ||||
| Several hosts in one view | ✓ | |||||
| Podman, including podman-compose projects | ✓ | |||||
| Docker Swarm | ✓ |
Based on each project's README and docs as of 24 November 2026 (the Podman row as of 2 December 2026). An empty cell means the feature isn't documented there, not that it can't be done another way.
Each of them also does things dp doesn't. lazydocker has the largest community
and shows image layer history. dry manages Swarm and detects Compose drift. dtop
watches several hosts in one table. ctop is a minimal top for containers, though
its last release was v0.7.7 in March 2022. More tools are listed in
Awesome Docker.
Documentation
Task guides and comparisons are on the website: dpad.sh/docs and dpad.sh/compare. The reference lives here:
- Using dpad: every tab, key and action, Compose updates, stats details, contexts and SSH.
- Themes: the built-in themes, choosing one, writing your own, and the theme file format.
- Running locally: prerequisites for macOS, Linux and Windows, building, installing, troubleshooting.
- Demo environment: what each demo container shows, plus a guided feature tour.
- Self-hosted CI runners: running CI on your own Docker hosts with the shared runners from gh-private-runners.
- Package managers: how releases update the Homebrew tap and Scoop bucket (and the AUR package once it is set up), and their one-time setup.
Contributing
Issues and pull requests are welcome. Before opening a pull request:
make test vet lint
Tests use fakes rather than a live Docker daemon, so they run anywhere. Commit
messages follow Conventional Commits
(fix(stats): ..., feat(tui): ...). CONTRIBUTING.md has
the checklist, including how to add a theme, and AGENTS.md
describes the code layout and conventions in more detail.
| Path | Contents |
|---|---|
cmd/ |
cobra commands and passthrough routing |
internal/docker/ |
Engine API client, contexts, stats math, events, log streaming |
internal/render/ |
styles from the active theme, ANSI-aware table, formatters, log-level highlighting |
internal/theme/ |
loads and validates theme files |
internal/topology/ |
the Map and dp graph: proxy routes, projects and networks |
themes/ |
the built-in themes, one YAML file each |
internal/tui/ |
the Bubble Tea app and its views |
testenv/ |
demo Compose environment |
scripts/screenshots/ |
regenerates the README images from the demo environment |
Sponsoring
If dpad saves you time, you can support its development through GitHub Sponsors.
Acknowledgements
dp is built on Bubble Tea,
Bubbles and
Lip Gloss from Charm,
Cobra, and the
Moby Engine API client.
License
dpad is free software under the GNU General Public License v3.0 (GPL-3.0-only), with the attribution and naming terms in NOTICE. You can use, modify, fork and sell it, but anything you distribute that is based on dpad must be released under the same license with its source, keep the attribution, and use a different name. Earlier versions were published under the MIT License.
Explore projetos relacionados
Carregando…