Skip to content

Honor --docker-host flag for TCP/HTTP Docker connections.#2503

Open
fnando wants to merge 2 commits intomainfrom
docker-host-bypass
Open

Honor --docker-host flag for TCP/HTTP Docker connections.#2503
fnando wants to merge 2 commits intomainfrom
docker-host-bypass

Conversation

@fnando
Copy link
Copy Markdown
Member

@fnando fnando commented Apr 20, 2026

What

Honor --docker-host flag for TCP/HTTP Docker connections.

Why

Close #2496

Known limitations

N/A

Copilot AI review requested due to automatic review settings April 20, 2026 23:14
@github-project-automation github-project-automation bot moved this to Backlog (Not Ready) in DevX Apr 20, 2026
@fnando fnando requested a review from mootz12 April 20, 2026 23:15
@fnando fnando self-assigned this Apr 20, 2026
@fnando fnando moved this from Backlog (Not Ready) to Needs Review in DevX Apr 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes stellar container Docker connection behavior so an explicit --docker-host value is honored for TCP/HTTP connections instead of being overridden by environment defaults, addressing the precedence bypass described in issue #2496.

Changes:

  • Use Bollard’s Docker::connect_with_http(&h, ...) for tcp:// and http:// hosts so the resolved CLI host is used.
  • Preserve existing behavior for unix socket / named pipe connections while aligning TCP/HTTP with the same precedence rules.

Comment thread cmd/soroban-cli/src/commands/container/shared.rs Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

Docker Host Flag Precedence Bypass

2 participants