Package io.fabric8.maven.docker.access
Class DockerConnectionDetector
- java.lang.Object
-
- io.fabric8.maven.docker.access.DockerConnectionDetector
-
public class DockerConnectionDetector extends Object
Detector for determining the Docker access mechanism
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDockerConnectionDetector.ConnectionParameterstatic interfaceDockerConnectionDetector.DockerHostProviderProvider of environment variables like 'DOCKER_HOST'
-
Constructor Summary
Constructors Constructor Description DockerConnectionDetector(List<DockerConnectionDetector.DockerHostProvider> externalProviders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DockerConnectionDetector.ConnectionParameterdetectConnectionParameter(String dockerHost, String certPath)Get the docker host url.
-
-
-
Constructor Detail
-
DockerConnectionDetector
public DockerConnectionDetector(List<DockerConnectionDetector.DockerHostProvider> externalProviders)
-
-
Method Detail
-
detectConnectionParameter
public DockerConnectionDetector.ConnectionParameter detectConnectionParameter(String dockerHost, String certPath) throws IOException
Get the docker host url.- From <dockerHost> configuration
- From <machine> configuration
- From DOCKER_HOST environment variable
- Default to /var/run/docker.sock
- Parameters:
dockerHost- The dockerHost configuration setting- Returns:
- The docker host url
- Throws:
IOException- when URL handling fails
-
-