[][src]Function docker_client_async::opts::from_env

pub fn from_env(
    client: &mut DockerEngineClient<UnixConnector>
) -> Result<(), Error>

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.