Skip to content

feat(cli): docker engine socket api, layer caching introspection & container sandbox optimization research #308

Closed

Description

@dan-petty

Context & Rationale

Workstation container management and dynamic sandbox execution currently execute shallow shell commands (docker run, docker inspect, docker stats) via subprocesses, leading to process churn and fragile string scraping.

Scope & Deliverables

  • Context & Rationale*: Workstation container management and dynamic sandbox execution currently execute shallow shell commands (docker run, docker inspect, docker stats) via subprocesses, leading to process churn and fragile string scraping.
  • Deep Integration & Functional Extension*: Establish direct asynchronous communication over the local Docker daemon Unix domain socket (/var/run/docker.sock) using engine APIs; introspect BuildKit multi-stage layer caching; stream real-time container resource metrics and cgroup telemetry directly into reactive streams.
  • Code Optimization & Performance Acceleration*: Eliminate subshell latency when provisioning sandboxes; streamline ephemeral image builds via BuildKit cache mounts; implement zero-overhead container health probing via socket pings.
  • Refactoring Potential & Legacy Elimination*: Refactor src/devops_cli/commands/docker.py and src/devops_cli/core/sandbox.py to share a unified container engine client; replace unstructured stdout scraping with typed Pydantic container state models; eliminate legacy fallback shims.

Strategic Alignment

  • Milestone: v0.2.22 (Deep Subsystem Integration, Architectural Optimization & Extensible Refactoring)
  • Roadmap Reference: docs/ROADMAP.md

Activity

  1. added this to the v0.2.22 milestone on Sep 19, 2026
  2. added
    type/feature
    scope/cli
    priority/p1-high
    on Sep 19, 2026
  3. dan-petty commented on Sep 21, 2026

    @dan-petty
    OwnerAuthor

    Closed by #348, merged into release/v0.2.22.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

  4. added a commit that references this issue on Sep 22, 2026
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/p1-highscope/clitype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions