Skip to content

feat(cli): docker containers & multi-tier workload sandbox console (tab-docker) #687

Closed as not planned

Description

@dan-petty

Context & Rationale

Comprehensive workstation container and sandbox observability hub.

Scope & Deliverables

  • Context & Rationale*: Comprehensive workstation container and sandbox observability hub.
  • Multi-Tier Sandbox Inspector*: Dedicated view of running Docker and Kubernetes sandboxes (devops sandbox status) showing active network modes (isolated, sandbox_namespace, public_whitelist, local_whitelist), cgroup resource limits, and health probe states.
  • Container Performance Metrics*: Live CPU %, memory RSS vs limit, block I/O, and network throughput sparklines.
  • Interactive Sandbox Controls*: Terminate sandbox (k), stream sandbox diagnostic logs (l), trigger dynamic health probe (p), or prune dangling volumes and images.

Update 2026-10-08: refinement

The Docker tab exists (ui/widgets.py:379), and docker/engine.py:55-120 computes the metrics the table omits. Left: a sandbox view, per-container metrics, the k, l and p controls (l is the Logs tab, ui/dashboard.py:180) and prune via #1116. #1108 moves the tab onto DockerEngineService. Criteria are still needed before Ready.

Proposed design

Problem statement

The devops-cli needs a Docker tab in the dashboard for observing running containers and sandboxes. It must show multi-tier sandbox info, live performance metrics, and interactive controls.

Acceptance criteria

  • Criterion 1: A new 'tab-docker' is added to the CLI dashboard that provides a comprehensive view of running Docker containers and sandboxes
    Verification: The CLI command devops dashboard launches a TUI with a new 'Docker' tab showing container and sandbox information
  • Criterion 2: Multi-tier sandbox inspector shows active network modes, cgroup resource limits, and health probe states
    Verification: Running devops sandbox status or viewing the Docker tab in the dashboard displays active network modes (isolated, sandbox_namespace, public_whitelist, local_whitelist), cgroup resource limits, and health probe states for each sandbox
  • Criterion 3: Container performance metrics are displayed as live sparklines showing CPU %, memory RSS vs limit, block I/O, and network throughput
    Verification: The Docker tab in the dashboard shows live sparkline visualizations of CPU usage, memory consumption, block I/O operations, and network throughput for each container
  • Criterion 4: Interactive sandbox controls are implemented with key bindings for terminating sandboxes, streaming diagnostic logs, triggering health probes, and pruning dangling volumes and images
    Verification: In the Docker tab, pressing 'k' terminates a sandbox, 'l' streams diagnostic logs, 'p' triggers dynamic health probe, and the prune function removes dangling volumes and images

Key questions

  • What are the specific network modes that need to be displayed?: The network modes that need to be shown are 'isolated', 'sandbox_namespace', 'public_whitelist', and 'local_whitelist'. [sources: docs/CLI_REFERENCE.md:1593, docs/CLI_REFERENCE.md:1594]

Open questions

  • What performance metrics should be included in the container view? (missing verified source)
  • What interactive controls are required for the sandbox management? (missing verified source)
  • What is the current state of the Docker tab implementation? (missing verified source)
  • How does the Docker tab relate to the DockerEngineService? (missing verified source)

Fit

Needs splitting into 4 items:

  1. Implement the Docker tab in the CLI dashboard UI
  2. Add multi-tier sandbox inspector with network modes, cgroup limits, and health probe states
  3. Integrate live container performance metrics (CPU, memory, I/O, network) as sparklines
  4. Implement interactive controls for sandbox management (terminate, log streaming, health probes, prune)

Suspected block

None.

Dependencies

#1116

Activity

  1. added this to the v0.2.24 milestone on Sep 28, 2026
  2. added
    type/feature
    scope/cli
    priority/p1-high
    on Sep 28, 2026
  3. modified the milestones: v0.2.24, v0.2.25, v0.2.26 on Sep 30, 2026
  4. dan-petty commented on Sep 30, 2026

    @dan-petty
    OwnerAuthor

    Moved from v0.2.25 to v0.2.26. v0.2.25 is capped at 12 items (#740): it keeps #739-#742, their dependency #704, and the oldest P1 items. This P1 item is next in line.

  5. removed this from the v0.2.26 milestone on Sep 30, 2026
  6. added
    priority/p2-medium
    and removed
    priority/p1-high
    on Oct 2, 2026
  7. dan-petty commented on Oct 2, 2026

    @dan-petty
    OwnerAuthor

    Grooming (2026-10-02): Priority p1-high → p2-medium, by the owner's decision. This is a feature with no defect behind it, and it is still a one-paragraph description with no acceptance criteria. That matches #685, the refined sibling tab, which is already P2. It stays in the backlog until it is refined.

  8. dan-petty commented on Oct 3, 2026

    @dan-petty
    OwnerAuthor

    Note from the library-first batch (2026-10-03): #1108 makes the Docker endpoint come from docker.utils.kwargs_from_env(), docker.ContextAPI and docker.utils.parse_host, behind DockerEngineService, and deletes the TUI's own docker.from_env() client. This item's docker tab consumes DockerEngineService (get_engine().client()) and builds no third Docker client. Scope and placement are unchanged.

  9. dan-petty commented on Oct 8, 2026

    @dan-petty
    OwnerAuthor

    Linked: #685 and #694. #694 holds p, and l is the Logs tab (ui/dashboard.py:180), so this item's k, l and p controls need free keys. Found by the 2026-10-08 backlog review.

  10. added this to the v0.2.39 milestone on Oct 17, 2026
  11. dan-petty commented on Oct 18, 2026

    @dan-petty
    OwnerAuthor

    Proposal needs splitting into 4 items at 25e2cda (see proposed design in issue body).

  12. modified the milestones: v0.2.39, on Oct 20, 2026
  13. dan-petty commented on Oct 23, 2026

    @dan-petty
    OwnerAuthor

    Proposal needs splitting into 4 items at 4bb052c (see proposed design in issue body).

  14. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    We cannot build this item as written. The Docker tab tab-docker already exists in src/devops_cli/ui/widgets.py. The requested key binding l conflicts with the global Logs tab shortcut in src/devops_cli/ui/dashboard.py. The requested key binding p conflicts with the command palette shortcut. The prune control depends on open defect issue #1116. The scope must split into the four smaller items identified during refinement.

  15. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Closed as not planned (rejected), 2026-10-24. The owner asked: "fix 598 or close as rejected" for #598 and the same for this item.

    Why this item is not built:

    What stays open: #1885 decides whether the Docker tab stays, with the evidence and the cost. If a sandbox view that no open tool gives is still needed after that audit, file it as a new item with acceptance criteria.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/clitype/feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions