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

Docker don't update the data in extension but works in terminal #2492

Closed
jifox opened this issue Nov 15, 2020 · 12 comments
Closed

Docker don't update the data in extension but works in terminal #2492

jifox opened this issue Nov 15, 2020 · 12 comments

Comments

@jifox
Copy link

jifox commented Nov 15, 2020

Issue Type: Bug

Hello

The docker extension is not updating the data (Containers, Images, ...) but is working without problems in vscode terminal.

Error: write EPROTO 139849010243456:error:1408F10B:SSL routins:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:\

KR Josef

Extension version: 1.7.0
VS Code version: Code 1.51.1 (e5a624b788d92b8d34d1392e4c4d9789406efe8f, 2020-11-10T23:34:32.027Z)
OS version: Windows_NT x64 10.0.20257
Remote OS version: Linux x64 5.4.0-53-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1992)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.80GB (10.55GB free)
Process Argv --crash-reporter-id 33dcbe68-5fb0-4cba-890a-4454b94a0e7e
Screen Reader yes
VM 67%
Item Value
Remote SSH: swarm-services
OS Linux x64 5.4.0-53-generic
CPUs Intel(R) Core(TM) i3-7100U CPU @ 2.40GHz (4 x 2400)
Memory (System) 5.81GB (1.52GB free)
VM 50%
@jifox
Copy link
Author

jifox commented Nov 15, 2020

Also I've already checked that no Docker settings are active in settings.json

@bwateratmsft
Copy link
Collaborator

@jifox What error is present in the explorer?

@jifox
Copy link
Author

jifox commented Nov 16, 2020

@bwateratmsft

What do you mean with "exploerer"?

Error: write EPROTO 139849010243456:error:1408F10B:SSL routins:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:\

In the terminal window there is no error

@jifox
Copy link
Author

jifox commented Nov 16, 2020

Screenshot 2020-11-16 210941

@bwateratmsft
Copy link
Collaborator

@jifox You may be using the extension in UI mode which is probably not what you want. If you go to the Extensions tab, does the Docker extension appear as installed in the remote server, similar to in the WSL screenshot below?

image

If it is not installed, can you try installing it and reloading VSCode, and see if that fixes the issue?

@jifox
Copy link
Author

jifox commented Nov 17, 2020

Screenshot 2020-11-16 210941

It was already installed in SSH Swarm Service

@bwateratmsft
Copy link
Collaborator

I've been able to find a handful of threads with similar error messages:
https://discuss.atom.io/t/why-would-i-be-getting-error-write-eproto-when-making-an-https-request-in-an-electron-app/22760
nodejs/node#3692
https://lifesaver.codes/answer/http-https-client-requests-throwing-eproto

It sounds like this is an external issue somehow related to TLS settings. That said, why use tcp://127.0.0.1:2376 to connect to the local Docker host, rather than using the default (which is unix:///var/run/docker.sock)?

@jifox
Copy link
Author

jifox commented Nov 17, 2020

@bwateratmsft
The unix:///var/run/docker.sock worked without problem remotly when connected through SSH and on the local teminal

After updating to the latest docker-ce version (Docker version 19.03.13, build 4484c46d9d) the tcp://localhost:2376 worked only locally on the linux host but not through ssh connection.

@jifox
Copy link
Author

jifox commented Nov 17, 2020

Screenshot 2020-11-16 210941

@ljgww
Copy link

ljgww commented Nov 18, 2020

After recent update on Ubuntu18 this stopped working. Default configuration looks ok. Lock file is present. Docker service is running (can enter commands from cli). But Docker extension is having a problem.
image

@bwateratmsft
Copy link
Collaborator

@ljgww Is this is a remote session? Do you have anything set for DOCKER_HOST environment variable or docker.host VSCode setting?

@jifox I'm not really sure what the problem is. There's any number of reasons that networking can break down. However, I'd recommend just using the default context for localhost connections, i.e. unix:///var/run/docker.sock. It seems like it adds unnecessary complexity to use a tcp:// endpoint for local connections.

@vscodebot vscodebot bot closed this as completed Dec 10, 2020
@vscodebot
Copy link

vscodebot bot commented Dec 10, 2020

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants