mirror of https://github.com/docker/docs.git
Merge pull request #1831 from thomasdarimont/feature/honor-docker-cert-path-env-variable
Honor DOCKER_CERT_PATH environment in nonNativeSetup
This commit is contained in:
commit
98fef969e5
|
|
@ -47,7 +47,7 @@ var DockerUtil = {
|
|||
throw new Error('Cannot connect to the Docker daemon. Is the daemon running?');
|
||||
}
|
||||
} else {
|
||||
let certDir = path.join(util.home(), '.docker/machine/machines/', name);
|
||||
let certDir = process.env.DOCKER_CERT_PATH || path.join(util.home(), '.docker/machine/machines/', name);
|
||||
if (!fs.existsSync(certDir)) {
|
||||
throw new Error('Certificate directory does not exist');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue