/** * Create a {@link DockerHost} from an explicit address or uri. * * @param endpoint The Docker endpoint. * @param certPath The certificate path. * @return The DockerHost object. */ public static DockerHost from(final String endpoint, final String certPath) { return new DockerHost(endpoint, certPath); }
/** * Create a {@link DockerHost} from DOCKER_HOST and DOCKER_PORT env vars. * * @return The DockerHost object. */ public static DockerHost fromEnv() { final String host = endpointFromEnv(); final String certPath = certPathFromEnv(); return new DockerHost(host, certPath); }
/** * Create a {@link DockerHost} from an explicit address or uri. * * @param endpoint The Docker endpoint. * @param certPath The certificate path. * @return The DockerHost object. */ public static DockerHost from(final String endpoint, final String certPath) { return new DockerHost(endpoint, certPath); }
/** * Create a {@link DockerHost} from DOCKER_HOST and DOCKER_PORT env vars. * * @return The DockerHost object. */ public static DockerHost fromEnv() { final String host = endpointFromEnv(); final String certPath = certPathFromEnv(); return new DockerHost(host, certPath); }