Class DockerClientProducer

java.lang.Object
com.ammann.servicemanager.config.DockerClientProducer

@ApplicationScoped public class DockerClientProducer extends Object
CDI producer for the Docker API client.

Creates an application-scoped DockerClient configured with an Apache HTTP transport. The Docker host URI defaults to the system default (typically the local Unix socket) but can be overridden via the docker.host configuration property.

  • Constructor Details

    • DockerClientProducer

      public DockerClientProducer()
  • Method Details

    • dockerClient

      @Produces @ApplicationScoped public com.github.dockerjava.api.DockerClient dockerClient()
      Produces an application-scoped DockerClient instance.
      Returns:
      a fully configured Docker client ready for API calls