Skip to content

Commit 5e090c0

Browse files
authored
Honor --docker-host flag for TCP/HTTP Docker connections. (#2503)
1 parent a97e60c commit 5e090c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • cmd/soroban-cli/src/commands/container

cmd/soroban-cli/src/commands/container/shared.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ impl Args {
6161
// this is based on the `connect_with_defaults` method which has not yet been released in the bollard crate
6262
// https://github.com/fussybeaver/bollard/blob/0972b1aac0ad5c08798e100319ddd0d2ee010365/src/docker.rs#L660
6363
let connection = match host.clone() {
64-
// if tcp or http, use connect_with_http_defaults
64+
// if tcp or http, connect to the specified host directly
6565
// if unix and host starts with "unix://" use connect_with_unix
6666
// if windows and host starts with "npipe://", use connect_with_named_pipe
6767
// else default to connect_with_unix
6868
h if h.starts_with("tcp://") || h.starts_with("http://") => {
69-
Docker::connect_with_http_defaults()
69+
Docker::connect_with_http(&h, DEFAULT_TIMEOUT, API_DEFAULT_VERSION)
7070
}
7171
#[cfg(unix)]
7272
h if h.starts_with("unix://") => {

0 commit comments

Comments
 (0)