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

Remote Docker Containers "Failed to connect. Is Docker running?" #3530

Closed
YouSenRong opened this issue May 20, 2022 · 6 comments
Closed

Remote Docker Containers "Failed to connect. Is Docker running?" #3530

YouSenRong opened this issue May 20, 2022 · 6 comments

Comments

@YouSenRong
Copy link

The remote docker containers "Failed to connect. Is Docker running?", but the Images can be connect and show correctly.

Local:
VScode 1.67.2 universal
Mac os 12.4
Remote:
Ubuntu 16.04

I have read these two issue, but it seems not work to me.

microsoft/vscode-remote-release#4800

#3111

Additionaly, I have seen this answer #3111 (comment), but I don't know how to apply it in my problem.

@bwateratmsft
Copy link
Collaborator

@YouSenRong can you share a screenshot of what you're seeing?

@code-d
Copy link

code-d commented May 31, 2022

@YouSenRong I have the same issue, maybe its related to ssh2 issue

need to add following line to sshd config on the server

PubkeyAcceptedKeyTypes=+ssh-rsa

Details:
mscdex/ssh2#989 (comment)_

@chrisbrocklesby
Copy link

I am also having the same issue on MacOS with the VSCode Docker Extension...

docker context use remote works in Terminal but the extension refuses to connect to the remote host/context.

@majksner
Copy link

majksner commented Jun 6, 2022

I am also having the same issue, and it seems it's because I have moved my SSH keys to 1Password (https://developer.1password.com/docs/ssh/get-started#step-3-turn-on-the-1password-ssh-agent) and added this line to ~/.ssh/config

Host *
  IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"

If I remove this line, all works correctly. Running docker ps from command line works fine, but it asks me to authenticate to use my SSH key.

@bwateratmsft
Copy link
Collaborator

@majksner It sounds like what you're seeing might be solved by #3263. Currently we use the dockerode NPM package, which in turn uses ssh2 to deal with communicating with a Docker host over SSH. Unfortunately, ssh2 has a hard requirement on using SSH agent auth; in theory 1Password should work with its agent but there are a lot of variables. With #3263, we're looking at switching to using the CLI only; no more dockerode. This way, as long as the CLI is working, the extension should work fine too.

@AzCode-Bot
Copy link
Collaborator

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!

@microsoft microsoft locked and limited conversation to collaborators Aug 6, 2022
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

6 participants