-
Notifications
You must be signed in to change notification settings - Fork 531
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
Emit some information about what target the Docker extension is trying to connect to #2493
Comments
Resolved on my own. For historical accuracy, what looks like happened here was that I had previously installed and configured docker with Additionally, it seems that VSCode's Docker extension binds itself to /var/run/docker.sock before anything else. My However, I am bit unsatisifed that there isn't necessarily a clear way in the extension to ascertain the default host it's connecting to, without diving into the Context Pane's default config (There weren't any breadcrumbs that led me here to understand this is where the socket was configured). I would have expected this setting/configuration to have been presented in User Settings. I could be wrong in that thought, but it was my first thought when working through it. In the As a feature suggestion, I'd ask configuration of a docker host and socket be configurable in the User/Workspace settings, as there wasn't sufficient troubleshooting data or VSCode logging to understand which docker it was connected to. The Extension docs also didn't provide a whole lot of info on troubleshooting connectivity issues (And yes, I'll freely admit, this is a user error and probably an edge case 😺 ) Extension is working now, but I will leave this issue open for feedback 👍 |
@webdog The As for the invalid URL issue, Dockerode, which we're using for connecting to Docker, requires a full URL including protocol (and in the case of SSH, username as well), which is why it won't accept We could emit information to the Output window about where Docker is trying to connect to, but other than that I don't think there's a better place to give such info. |
That's a really good point. Even if it did, it could become confusing quickly unless those values were nested/organized in some efficient way (Something like
Information in the output window would work, I think. It would have been a breadcrumb for me that my environment was misconfigured. In my case, my DOCKER_HOST was the IP, and if I'd seen the variable was set to the value of the Socket, I may have been able to use that info to investigate further, and understand quickly that I had two Docker installations set up (oops!) Thanks again! I'm good with closing this out as a suggestion/feature request for a little more logging 😺 |
I'll adjust the title and set some labels. Thank you for the suggestion and for the very detailed information! |
This is now available in Docker extension version 1.9.0. |
Version: 1.51.0
Commit: fcac248b077b55bae4ba5bab613fd6e9156c2f0c
Date: 2020-11-05T18:14:40.758Z (1 wk ago)
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 19.4.0
Steps to Reproduce:
$docker_host_ip
:2376Does this issue occur when you try this locally?: Yes/No Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes/No Yes
I am setting




docker.host
to connect to my local installation of Docker for Desktop on Mac, which works and can connect with no issue independently of VSCode. However VSCode complains that it cannot verify the first certificate:Console logging does not provide any debug logging when displaying the front-end certificate error:

Additionally, trying to enter just the IP address of the local host results in a formatting error:



I think I have two questions:
The text was updated successfully, but these errors were encountered: