Skip to main content

resolve_docker_client

Function resolve_docker_client 

Source
pub async fn resolve_docker_client(
    maybe_host: Option<&str>,
) -> Result<(DockerClient, Option<String>)>
Expand description

Resolve which Docker client to use based on –host flag and default_host config

Returns (DockerClient, Option<host_name>) where host_name is Some for remote connections.

Resolution order:

  1. –host flag (explicit)
  2. default_host from hosts.json
  3. Local Docker (no host_name)