Skip to content

Expose resolved Docker endpoint and failure reason in diagnostics#2

Closed
agustif wants to merge 1 commit intoaf/docker-context-resolutionfrom
af/docker-diagnostics
Closed

Expose resolved Docker endpoint and failure reason in diagnostics#2
agustif wants to merge 1 commit intoaf/docker-context-resolutionfrom
af/docker-diagnostics

Conversation

@agustif
Copy link
Owner

@agustif agustif commented Mar 12, 2026

Summary

Draft follow-up for coast-guard#65, stacked on top of coast-guard#61.

This PR improves diagnostics only:

  • records the resolved Docker endpoint summary in daemon startup state
  • records the last Docker connection error captured at startup
  • exposes those fields through /api/v1/docker/info
  • includes resolved endpoint details in coast doctor connection failures

Why this is stacked

This depends on the resolver introduced in coast-guard#61. Keeping it stacked makes the diff much smaller than opening a combined branch against upstream main.

Scope

  • no transport behavior changes
  • no daemon auto-refresh / re-resolution changes
  • no SSH support work

Validation

  • cargo test -p coast-core test_docker_info_response_serialization
  • COAST_SKIP_UI_BUILD=1 cargo test -p coast-daemon test_docker_info_disconnected_without_docker
  • cargo test -p coast-cli doctor:: -- --nocapture

Refs: coast-guard#65

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>
@agustif
Copy link
Owner Author

agustif commented Mar 12, 2026

Closing in favor of upstream draft PR coast-guard#68.

@agustif agustif closed this Mar 12, 2026
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