Class DockerClientProducer
java.lang.Object
com.ammann.servicemanager.config.DockerClientProducer
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.github.dockerjava.api.DockerClientProduces an application-scopedDockerClientinstance.
-
Constructor Details
-
DockerClientProducer
public DockerClientProducer()
-
-
Method Details
-
dockerClient
@Produces @ApplicationScoped public com.github.dockerjava.api.DockerClient dockerClient()Produces an application-scopedDockerClientinstance.- Returns:
- a fully configured Docker client ready for API calls
-