Skip to content

Releases

DockTUI 1.5.0 — Docker host operations toolkit

Choose a tag to compare

@strmax195-hue strmax195-hue released this 01 Oct 05:32

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 (0 OK, 1 WARNING, 2 CRITICAL, 3 UNKNOWN) 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 --json and --quiet.
  • docktui status (alias ps): one-shot container table with state, health, CPU, memory and Compose project, or --json for scripts. --filter/--exclude globs match container and Compose project names.
  • docktui doctor: diagnoses the Docker CLI, daemon reachability, socket permissions (with the usermod -aG docker hint), endpoint (ssh client present, insecure tcp://…:2375 warning), Compose plugin, config file JSON and terminal size.
  • docktui config init|path|show to create, locate and print the configuration.
  • -c/--config PATH, $DOCKTUI_CONFIG and $XDG_CONFIG_HOME support; the settings editor now saves back to the file the config was loaded from.
  • --no-color flag (same as NO_COLOR=1) and -V short 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/FATAL red, WARN yellow, also level=… logfmt).
  • docktui status fits 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_intervals config block (documented previously, but it was silently ignored).
  • py.typed marker, Typing :: Typed and 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: check returns UNKNOWN (3), including missing requested resource metrics; status --json emits 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, interactive exec and on exit.
  • CPU/memory stats missing with recent Docker releases, which print full 64-character IDs in docker stats while docker ps prints short IDs.
  • Bulk start/stop (Ctrl+S), custom hotkeys (hotkey_overlays) and pinned panes (P in 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 single docker stop|start call.
  • 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) and NO_COLOR/--no-color had 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] Files on the Compose tab) were corrected.
  • __version__ reported 1.3.0 while the package was 1.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 docktui instruction (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 license expression (setuptools ≥ 77), which avoids build failures scheduled for 2027.
  • Type hints modernised to built-in generics; mypy, pytest and coverage are configured in pyproject.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 typecheck job to GitHub Actions to enforce mypy, and a pre-commit-config.yaml for ruff and mypy.
  • Configured Dependabot for Python (pip) and GitHub Actions; pytest --cov coverage reporting in CI.
  • Fixed a Windows bug where shlex.split dropped backslashes during interactive docker exec sessions.

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.whl

The 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

Choose a tag to compare

@strmax195-hue strmax195-hue released this 17 Jun 16:57