Expose resolved Docker endpoint and failure reason in diagnostics#68
Draft
agustif wants to merge 2 commits intocoast-guard:mainfrom
Draft
Expose resolved Docker endpoint and failure reason in diagnostics#68agustif wants to merge 2 commits intocoast-guard:mainfrom
agustif wants to merge 2 commits intocoast-guard:mainfrom
Conversation
Honor Docker's documented precedence by letting DOCKER_CONTEXT override DOCKER_HOST, treating DOCKER_CONTEXT=default as the default local engine selection, and only consulting currentContext when neither env var is set. Keep the shared resolver wiring limited to local/context socket discovery. Refs: coast-guard#60 Co-authored-by: Codex <noreply@openai.com>
This was referenced Mar 12, 2026
74f005a to
85b17df
Compare
Record the resolved Docker endpoint summary and last connection error in daemon startup state, surface them through the docker info API, and include the resolved endpoint details in coast doctor failures. Keep transport behavior unchanged. Refs: coast-guard#65 Co-authored-by: Codex <noreply@openai.com>
85b17df to
eb7f067
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Draft follow-up for #65.
This PR improves diagnostics only:
/api/v1/docker/infocoast doctorconnection failuresImportant review note
This branch currently includes the resolver base from #61 plus the diagnostics follow-up on top of it.
I’m opening it in the upstream repo now for visibility, but the intended review/merge order is still:
If #61 lands first, this branch can be rebased down to the diagnostics-only delta.
Scope
Validation
cargo test -p coast-core test_docker_info_response_serializationCOAST_SKIP_UI_BUILD=1 cargo test -p coast-daemon test_docker_info_disconnected_without_dockercargo test -p coast-cli doctor:: -- --nocaptureRefs: #65