public abstract class DockerClientProviderStrategy extends Object
Modifier and Type | Field and Description |
---|---|
protected com.github.dockerjava.api.DockerClient |
client |
protected com.github.dockerjava.core.DockerClientConfig |
config |
protected static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
DockerClientProviderStrategy() |
Modifier and Type | Method and Description |
---|---|
com.github.dockerjava.api.DockerClient |
getClient() |
protected com.github.dockerjava.api.DockerClient |
getClientForConfig(com.github.dockerjava.core.DockerClientConfig config) |
abstract String |
getDescription() |
String |
getDockerHostIpAddress() |
static DockerClientProviderStrategy |
getFirstValidStrategy(List<DockerClientProviderStrategy> strategies)
Determine the right DockerClientConfig to use for building clients by trial-and-error.
|
protected void |
ping(com.github.dockerjava.api.DockerClient client,
int timeoutInSeconds) |
abstract void |
test() |
protected com.github.dockerjava.api.DockerClient client
protected com.github.dockerjava.core.DockerClientConfig config
protected static final org.slf4j.Logger LOGGER
public abstract void test() throws org.testcontainers.dockerclient.DockerClientProviderStrategy.InvalidConfigurationException
InvalidConfigurationException
- if this strategy failsorg.testcontainers.dockerclient.DockerClientProviderStrategy.InvalidConfigurationException
public abstract String getDescription()
public static DockerClientProviderStrategy getFirstValidStrategy(List<DockerClientProviderStrategy> strategies)
public com.github.dockerjava.api.DockerClient getClient()
protected com.github.dockerjava.api.DockerClient getClientForConfig(com.github.dockerjava.core.DockerClientConfig config)
protected void ping(com.github.dockerjava.api.DockerClient client, int timeoutInSeconds)
public String getDockerHostIpAddress()
Copyright © 2016. All rights reserved.