Class DockerClientService

java.lang.Object
com.bmuschko.gradle.docker.internal.services.DockerClientService
All Implemented Interfaces:
AutoCloseable, BuildService<DockerClientService.Params>

public abstract class DockerClientService extends Object implements BuildService<DockerClientService.Params>, AutoCloseable
Build service for Docker client.
  • Constructor Details

    • DockerClientService

      @Inject public DockerClientService(ObjectFactory objects)
      Constructor for Docker client service.
      Parameters:
      objects - The object factory
  • Method Details

    • getDockerClient

      public com.github.dockerjava.api.DockerClient getDockerClient(Provider<String> urlProvider, Provider<Directory> certPathProvider, Provider<String> apiVersionProvider)
      Returns the Docker client.
      Parameters:
      urlProvider - Docker client url
      certPathProvider - Docker client certificate path
      apiVersionProvider - Docker client api version
      Returns:
      Docker client
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception