Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve docker-machine documentation. #324

Merged
merged 1 commit into from Jul 25, 2018

Conversation

mikepatrick
Copy link
Contributor

Note the need for a DOCKER_CERT_PATH environment variable when using TLS.

The docker-machine section of the README calls out the need for a DOCKER_HOST environment variable, but does not mention the DOCKER_CERT_PATH environment variable.

Failure to have DOCKER_CERT_PATH set when using TLS causes strange looking TLS errors, which are only reported to the user as "Could not connect to docker daemon".

This seems to cause a fair amount of confusion; see here, here, and here.

Note need for DOCKER_CERT_PATH when using TLS.
@@ -124,6 +124,8 @@ By default, Docker runs as the root user, requiring other users to access it wit

The default connection of the extension is to connect to the local docker daemon. You can connect to a docker-machine instance if you launch Visual Studio Code and have the DOCKER_HOST environment variable set to a valid host or if you set the `docker.host` configuration setting.

If the docker daemon is using TLS, the DOCKER_CERT_PATH environment variable must also be set (e.g. `$HOME\.docker\machine\machines\default`).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much thanks for this contribution.

Should you point to (https://docs.docker.com/machine/reference/env/) for more information?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add this after the merge.

@StephenWeatherford StephenWeatherford merged commit 0622099 into microsoft:master Jul 25, 2018
@StephenWeatherford
Copy link
Contributor

@mikepatrick Thanks! Really appreciate this contribution.

@microsoft microsoft locked and limited conversation to collaborators Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants