Search in sources :

Example 1 with DockerClientConfig

use of com.github.dockerjava.core.DockerClientConfig in project spring-boot by spring-projects.

the class SysVinitLaunchScriptIT method createClient.

private DockerClient createClient() {
    DockerClientConfig config = DockerClientConfig.createDefaultConfigBuilder().withVersion("1.19").build();
    DockerClient docker = DockerClientBuilder.getInstance(config).withDockerCmdExecFactory(this.commandExecFactory).build();
    return docker;
}
Also used : DockerClient(com.github.dockerjava.api.DockerClient) DockerClientConfig(com.github.dockerjava.core.DockerClientConfig)

Aggregations

DockerClient (com.github.dockerjava.api.DockerClient)1 DockerClientConfig (com.github.dockerjava.core.DockerClientConfig)1