DockerClient constructor
DockerClient(
- DockerEndpoint endpoint
A client of the daemon at endpoint; nothing connects until the first
call.
Implementation
DockerClient(this.endpoint) : _http = HttpClient() {
_http
..idleTimeout = const Duration(seconds: 2)
..connectionTimeout = const Duration(seconds: 10)
..findProxy = ((_) => 'DIRECT');
if (endpoint.socketPath case final path?) {
final address = InternetAddress(path, type: InternetAddressType.unix);
_http.connectionFactory = (uri, proxyHost, proxyPort) =>
Socket.startConnect(address, 0);
}
}