1

I'm unable to configure the VSCode Docker extension by Microsoft to connect to a docker-machine via setting of the DOCKER_HOST environment variable.

Docker extension instructions

.zshrc

export DOCKER_HOST="tcp://192.168.99.100:2376"

I have:

  1. Run source ~/.zshrc and restarted VSCode
  2. Logged out and reopen VSCode

Has anyone else run into this issue before and found a fix?

1 Answer 1

2

Port 2376 in your DOCKER_HOST implies your docker daemon is most likely running on TLS.

Assuming it is, you also need to set a DOCKER_CERT_PATH environment variable.

On my (default Windows) installation, its value is C:\Users\mike\.docker\machine\machines\default.

This does seem like a glaring omission from the documentation, so I went ahead and raised a PR.

Sign up to request clarification or add additional context in comments.

1 Comment

awesome! This worked like a charm :) Great idea creating the PR.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.