Repository navigation
Releases
Releases · strmax195-hue/docktui
DockTUI 1.5.0 — Docker host operations toolkit
DockTUI 1.5.0
A release focused on people who run Docker hosts: scriptable health checks, diagnostics, and fixing dashboard features that did not work as documented.
Added
- Prometheus textfile metrics with bounded escaped labels, freshness and failure gauges; bounded parallel multi-endpoint checks with per-host deadlines, independent results and CRITICAL > UNKNOWN > WARNING > OK priority.
- Container/Compose log time windows and timestamps, target-specific highlight presets, and display-time filtering over retained history. Empty windows are cached without repeated queries.
- Latest healthcheck probe in Details and an optional bounded Docker events feed (E), with connection status, reconnect cursor and replay suppression.
- Separate terminal, log-formatting and view modules, with Unix PTY coverage for quit, interruption, resize and terminal restoration. Dashboard APIs remain available.
- Background job queue with UI-thread result delivery, duplicate-action prevention, cancellation with Esc, frozen connection environments, and stable resource selection across refreshes. Slow collection, exec, Compose, registry search, files, details and cleanup no longer block navigation.
docktui check: health check with Nagios-compatible exit codes (0OK,1WARNING,2CRITICAL,3UNKNOWN) and plugin-style output with perfdata. Flags unhealthy healthchecks, restart loops, dead containers, crashes (non-zero exit codes), SIGKILL/OOM exits, CPU/memory thresholds (--cpu-warn,--mem-warn) and missing required containers (--require GLOB). Supports--jsonand--quiet.docktui status(aliasps): one-shot container table with state, health, CPU, memory and Compose project, or--jsonfor scripts.--filter/--excludeglobs match container and Compose project names.docktui doctor: diagnoses the Docker CLI, daemon reachability, socket permissions (with theusermod -aG dockerhint), endpoint (sshclient present, insecuretcp://…:2375warning), Compose plugin, config file JSON and terminal size.docktui config init|path|showto create, locate and print the configuration.-c/--config PATH,$DOCKTUI_CONFIGand$XDG_CONFIG_HOMEsupport; the settings editor now saves back to the file the config was loaded from.--no-colorflag (same asNO_COLOR=1) and-Vshort version flag.- Dashboard lists (containers, Compose, images, volumes, networks, contexts) now scroll and keep the selection visible, with a
[rows X-Y of N]indicator — usable on hosts with hundreds of containers. - Unhealthy and restarting containers are highlighted in the Containers tab; container states are coloured in the Compose tab too.
- Log lines are coloured by severity (
ERROR/FATALred,WARNyellow, alsolevel=…logfmt). docktui statusfits the table to the terminal width instead of wrapping.- README screenshots are generated from the real UI (
scripts/screenshots.py+scripts/demo/), with a dark-mode logo variant and a new social preview image. poll_intervalsconfig block (documented previously, but it was silently ignored).py.typedmarker,Typing :: Typedand sysadmin classifiers; CI integration job against a real Docker daemon; CLI smoke tests; release workflow attaches the wheel and sdist to the GitHub release and checks the tag matches the package version.
Fixed
- Ctrl+C requests orderly UI shutdown without interrupting thread creation or lock operations; terminal signal handlers restore afterward.
- Successful context switches pin the new connection and invalidate old jobs/streams. Superseded view reads are canceled so quick navigation loads the latest target. Preserve configured global highlights; retain full freshness timestamp precision. Complete failed stream startup exactly once and reconnect events; finite log windows remain paused when pinned. Compose finite windows collect per-container logs using supported Docker flags. Windows subprocess trees use kill-on-close Job Objects with bounded cleanup and a taskkill fallback.
- Release publication now consumes one artifact after tests, lint, type checks, Twine, tag/version validation and clean wheel installation. PyPI is opt-in after Trusted Publishing setup; Actions use pinned SHAs.
- Configuration saves use an fsynced temporary file and atomic replacement. Nonfinite numbers, invalid endpoint structures, duplicate names, inconsistent log limits and malformed regexes are diagnosed by doctor. Runtime sanitizes unsafe values; unresolved active endpoints still fail explicitly to prevent a wrong-host fallback.
- Stream history is bounded to 500 lines by default, natural subprocess exit emits exactly one completion result, and cancellation is distinguished from failure. Reader pipes are closed, killed processes are reaped, and image pulls are stopped when the dashboard exits.
- Compose lifecycle commands now place project/file options after
docker compose, retain ordered override files, validate local config paths, and use a longer timeout for builds. Real Compose lifecycle coverage runs in integration CI. - Logs, pulls and interactive exec now receive the same per-client Docker connection as snapshots. Constructors no longer modify global DOCKER_HOST; explicit hosts override DOCKER_CONTEXT. Named active endpoints apply to all commands, and switching endpoints clears old data and streams.
- Docker collection errors no longer appear as empty successful results:
checkreturns UNKNOWN (3), including missing requested resource metrics;status --jsonemits a structured error. The dashboard keeps its last successful snapshot with a stale-data warning. - Dropped key presses on Linux/macOS: the terminal was switched into raw mode only for 50 ms per poll using
TCSAFLUSH, which discarded keys typed in between and echoed arrow-key escape sequences onto the screen. The terminal now stays in cbreak mode for the whole session and is restored for prompts, interactiveexecand on exit. - CPU/memory stats missing with recent Docker releases, which print full 64-character IDs in
docker statswhiledocker psprints short IDs. - Bulk start/stop (
Ctrl+S), custom hotkeys (hotkey_overlays) and pinned panes (Pin Logs/Details) were listed in the 1.4.0 notes but were not wired into the dashboard. They are now implemented and tested; bulk actions ask for confirmation and run as a singledocker stop|startcall. - Background exec output was not split into lines (
"\\n"literal), and the input prompt printed a literal\n. - The STATE column in the Containers tab was misaligned when colors were enabled.
- Theme switching (
M,--theme) andNO_COLOR/--no-colorhad no effect in the dashboard: colour codes were copied at import time. They are now re-bound whenever a theme is applied. - Log highlight patterns (
H) were compiled but never rendered, and lost their case-insensitive flag. Matches are now shown in bold magenta. - The key-hint footer wrapped in the middle of words on narrow terminals; it now wraps between hints, and wrong hints (
[Shift+F] Fileson the Compose tab) were corrected. __version__reported1.3.0while the package was1.4.0; the version now has a single source (docktui/__init__.py).- A config file with
"theme": "high-contrast"or a non-numeric value no longer resets or crashes the CLI. - Removed the misleading
pip install docktuiinstruction (the package is not on PyPI yet) and a broken "Lint" badge.
Changed
- Python 3.9+ is now required (3.8 reached end-of-life in October 2024). Packaging uses an SPDX
licenseexpression (setuptools ≥ 77), which avoids build failures scheduled for 2027. - Type hints modernised to built-in generics;
mypy,pytestandcoverageare configured inpyproject.toml. - CI matrix: Python 3.9, 3.11, 3.13 and 3.14 on Linux, macOS and Windows.
Earlier unreleased changes
- Added CodeQL Static Application Security Testing (SAST) to GitHub Actions.
- Added a
typecheckjob to GitHub Actions to enforcemypy, and apre-commit-config.yamlforruffandmypy. - Configured Dependabot for Python (
pip) and GitHub Actions;pytest --covcoverage reporting in CI. - Fixed a Windows bug where
shlex.splitdropped backslashes during interactivedocker execsessions.
Installation
Requires Python 3.9+ and the Docker CLI. No runtime dependencies.
pipx install https://github.com/strmax195-hue/docktui/releases/download/v1.5.0/docktui-1.5.0-py3-none-any.whlThe Release workflow attaches the verified wheel and source distribution after tests, lint, type checks, Twine validation, tag/version checks, and a clean wheel installation.
Full changelog: https://github.com/strmax195-hue/docktui/blob/main/CHANGELOG.md
Compare: v1.4.0...v1.5.0
v1.4.0 - DockTUI Roadmap Completion
Full Changelog: https://github.com/strmax195-hue/docktui/commits/v1.4.0