}
}
protected DockerClient getNewDockerClient() throws Exception {
if (isNullOrEmpty(DOCKER_HOST.dockerCertPath())) {
return new DefaultDockerClient(DOCKER_HOST.uri());
} else {
final Path dockerCertPath = java.nio.file.Paths.get(DOCKER_HOST.dockerCertPath());
return new DefaultDockerClient(DOCKER_HOST.uri(), new DockerCertificates(dockerCertPath));
}
}