[][src]Module docker_client_async::opts

Docker client configuration and options.

Functions

from_env

from_env configures a local client with values from environment variables. Supported environment variables: DOCKER_HOST to set the url to the docker server. DOCKER_API_VERSION to set the version of the API to reach, leave empty for latest.

from_env_remote

from_env_remote configures a remote Docker client with values from environment variables. Supported environment variables: DOCKER_HOST to set the url to the docker server. DOCKER_API_VERSION to set the version of the API to reach, leave empty for latest.

from_env_remote_tls

from_env_remote_tls configures a remote Docker client with values from environment variables. Supported environment variables: DOCKER_HOST to set the url to the docker server. DOCKER_API_VERSION to set the version of the API to reach, leave empty for latest. DOCKER_CERT_PATH to load the TLS certificates from. DOCKER_TLS_VERIFY to enable or disable TLS verification, off by default.

with_api_version_negotiation

with_api_version_negotiation enables automatic API version negotiation for the client. With this option enabled, the client automatically negotiates the API version to use when making requests. API version negotiation is performed on the first request; subsequent requests will not re-negotiate.

with_host

with_host overrides the client host with the specified one.

with_http_headers

with_http_headers overrides the client default http headers.

with_scheme

with_scheme overrides the client scheme with the specified one.

with_timeout

with_timeout configures the time limit for requests made by the HTTP client.

with_tls_client_config

with_tls_client_config applies a tls config to the client transport.

with_version

with_version overrides the client version with the specified one. If an empty version is specified, the value will be ignored to allow version negotiation.

Type Definitions

DockerEngineClientOption

DockerEngineClientOption is a configuration option to initialize a client.