Skip to content
All work

Case study · Open source

Docker Inspector

Docker Desktop shows you what is running. Docker Inspector tells you what is wrong, and what happened while you weren't looking.

Role
Sole author: design, backend, UI, packaging
Platform
Linux desktop (Electron) or a hardened container
Stack
Electron · React 19 · TypeScript · Node.js
Licence
MIT · no account · no telemetry
Docker Inspector overview dashboard in dark mode

01 · Why

A black box for your containers.

When a container dies at 3 a.m., the exit code and a log tail rarely tell the whole story. Docker Inspector records in the background: CPU, memory and engine events go into a local SQLite store, so the moments before a crash are still there when you look.

Docker DesktopDocker Inspector
Why did a container die? Exit code and logs; you work out the cause Diagnosis, evidence, fix, and the metrics from just before it died
Resource usage over time Live view (history needs an extension) 7 days built in, with a clickable timeline and crash markers
Configuration audit Image vulnerability scanning (Docker Scout) Exposed ports, UFW bypass, limits, log growth, outdated images, secrets
Native Linux engine Runs its own VM and engine Any socket: native, rootless, Desktop or TCP
Cost and account Paid for larger companies; some features need sign-in MIT, no account, no telemetry

Docker Desktop remains the better choice for Kubernetes, Docker Scout, the extensions marketplace and macOS/Windows.

02 · Features

Diagnose, rewind, audit.

Crash reports

When a container stops unexpectedly, a report is saved straight away. It names the cause in plain English (out of memory, missing module, database login failed, dependency down, port in use…), highlights the log line it is based on, and includes the seconds of CPU and memory before the crash. Each report comes with a fix to copy, and memory limits have an Apply button. Crash loops are merged into one report with a counter.

Time machine

CPU and memory for the host and every container, stored locally: about 10-second resolution for 2 days, then one minute for 7 days. Click any moment to see what was running and what happened in the five minutes around it.

Doctor

Audits how containers are configured and grades each one: database ports published to the whole network, ports that bypass UFW, a mounted Docker socket, privileged mode, secrets in environment variables, missing memory limits or restart policies, unrotated logs, outdated images. Fixes are a Compose snippet to copy or a button that applies the change.

Everything about a container

Eight tabs per container: live stats with sparklines, logs with ANSI colours and error highlighting, a real interactive shell (xterm.js), a file browser with tar downloads, processes, configuration with masked secrets, and a searchable inspect tree.

Container stats: live CPU, memory, network and block I/O charts
Container stats: live CPU, memory, network and block I/O charts
Container logs with error highlighting and filters
Container logs with error highlighting and filters
Interactive terminal inside a container, light theme
Interactive terminal inside a container, light theme
Disk usage breakdown of images, containers, volumes and build cache
Disk usage breakdown of images, containers, volumes and build cache
Image layer-by-layer build history
Image layer-by-layer build history
Quick open palette (Ctrl+K)
Quick open palette (Ctrl+K)

Screenshots are taken from a throw-away Docker-in-Docker engine running a fake demo project, so they contain no real data.

03 · Architecture

No SDK, one local backend.

The UI never talks to Docker directly. A small local backend proxies the Engine API over the Unix socket and adds what the API doesn't provide: multiplexed live stats, log streaming, an interactive exec session over a hijacked connection, and a file browser built on exec. The only production dependency is ws.

  • electron/main.js Frameless window; starts the backend in-process
  • server/docker.js Docker Engine API client over the Unix socket or TCP, no SDK
  • server/hub.js Multiplexed stats streams, event stream, host metrics, crash detection
  • server/store.js Local SQLite history via node:sqlite: metrics, events, crash reports
  • server/crash.js Crash analyser: exit codes, log patterns and metrics → verdict, evidence, fixes
  • server/doctor.js Configuration auditor and scoring
  • server/server.js 127.0.0.1 HTTP + WebSocket: engine proxy, logs, exec, files
  • src/ React 19 UI (Vite, TanStack Query, hand-rolled SVG charts)

04 · Security

Root-equivalent access, handled carefully.

Desktop backend

  • Listens on 127.0.0.1 only
  • Random per-launch token on every API and WebSocket call
  • Host and Origin validation blocks cross-site requests and DNS rebinding
  • No network requests of its own; history never leaves the machine

Container image

  • Multi-stage build on node:22-alpine, about 240 MB, no Electron binary
  • Unprivileged user, read-only filesystem, all capabilities dropped, no-new-privileges
  • Port published on loopback only, built-in health check
  • Explains the wrong DOCKER_GID in its own logs
Next case study FIREBRIDGE · NASA Space Apps 2026