public ClientBuilderForConnector forConnector ( DockerConnector connector ) throws UnrecoverableKeyException , NoSuchAlgorithmException , KeyStoreException , KeyManagementException { LOG . debug ( "Building connection to docker host '{}'" , connector . getServerUrl ( ) ) ; withCredentialsId ( connector . getCredentialsId ( ) ) ; withConnectorType ( connector . getConnectorType ( ) ) ; withConnectTimeout ( connector . getConnectTimeout ( ) ) ; withReadTimeout ( connector . getReadTimeout ( ) ) ; return forServer ( connector . getServerUrl ( ) , connector . getApiVersion ( ) ) ; }
Provides ready to use docker client with information from docker connector