public abstract class DockerClientProviderStrategy
extends java.lang.Object
The order is:
TestcontainersHostPropertyClientProviderStrategy
EnvironmentAndSystemPropertyClientProviderStrategy
DockerClientProviderStrategy
in ~/.testcontainers.properties
Constructor and Description |
---|
DockerClientProviderStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowUserOverrides() |
com.github.dockerjava.api.DockerClient |
getClient()
Deprecated.
|
static com.github.dockerjava.api.DockerClient |
getClientForConfig(TransportConfig transportConfig) |
abstract java.lang.String |
getDescription() |
com.github.dockerjava.api.DockerClient |
getDockerClient() |
java.lang.String |
getDockerHostIpAddress() |
static DockerClientProviderStrategy |
getFirstValidStrategy(java.util.List<DockerClientProviderStrategy> strategies)
Determine the right DockerClientConfig to use for building clients by trial-and-error.
|
com.github.dockerjava.api.model.Info |
getInfo() |
protected int |
getPriority() |
java.lang.String |
getRemoteDockerUnixSocketPath()
/* @return the path under which the Docker unix socket is reachable relative to the Docker daemon
|
abstract TransportConfig |
getTransportConfig() |
protected boolean |
isApplicable() |
protected boolean |
isPersistable() |
protected boolean |
test()
TODO we should consider moving this to docker-java at some point
|
public abstract java.lang.String getDescription()
protected boolean isApplicable()
protected boolean isPersistable()
public boolean allowUserOverrides()
public java.lang.String getRemoteDockerUnixSocketPath()
protected int getPriority()
public abstract TransportConfig getTransportConfig() throws InvalidConfigurationException
InvalidConfigurationException
- if this strategy fails@Deprecated public com.github.dockerjava.api.DockerClient getClient()
getDockerClient()
@UnstableAPI protected boolean test()
public static DockerClientProviderStrategy getFirstValidStrategy(java.util.List<DockerClientProviderStrategy> strategies)
public static com.github.dockerjava.api.DockerClient getClientForConfig(TransportConfig transportConfig)
public java.lang.String getDockerHostIpAddress()
public com.github.dockerjava.api.DockerClient getDockerClient()
public com.github.dockerjava.api.model.Info getInfo()