Skip to content

fix(runtime): honor DOCKER_CONTEXT when selecting the Docker endpoint - #40

Merged
samirhvbr merged 2 commits into
masterfrom
feat/backport-docker-context
Oct 30, 2026
Merged

samirhvbr merged 2 commits into
masterfrom
feat/backport-docker-context

Conversation

@samirhvbr

@samirhvbr samirhvbr commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

An explicit DOCKER_CONTEXT is ignored when Strix chooses its local Docker endpoint. If the stored active context points elsewhere, a run can select the wrong daemon even though the requested named context exists.

This backports usestrix#1612 to fork master at 8aa0791e, addressing usestrix#1610. Context selection now honors a nonblank DOCKER_CONTEXT before consulting Docker's stored current context, while preserving the existing DOCKER_HOST precedence. The configuration docs and FORK.md record this behavior.

Validation on the fork, Python 3.12.14 and frozen dependencies, with isolated HOME/environment:

  • Three regressions fail against the unchanged fork implementation.
  • 64 passed across test_docker_connection.py, test_docker_client_delete.py, test_session_entries.py and test_network_guard.py.
  • Full Ruff lint/format, Mypy (174 source files), Bandit and git diff --check passed.
  • make check-all reaches the existing Pyright failure: base and patch both report 1,259 errors, with identical diagnostic signatures after normalizing checkout paths.

Tests use real temporary Docker context metadata and mocked client connections. A real Docker daemon or scan was not exercised, and the complete Python suite was not run. Version stamping and release remain part of the merge/delivery procedure.

Remote CI: GitHub Actions run could not start its jobs because the account is locked due to a billing issue. No remote validation was performed.

@samirhvbr
samirhvbr merged commit 23d8719 into master Oct 30, 2026
0 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant