profile
viewpoint

Ask questionsIn order to use an SSH DOCKER_HOST on OS X and Linux, you must configure an ssh-agent.

https://github.com/microsoft/vscode-docker/blob/836a76500c1e3edaadccdea944dec31b3e586c2c/src/utils/refreshDockerode.ts#L63

https://github.com/microsoft/vscode-docker/blob/836a76500c1e3edaadccdea944dec31b3e586c2c/src/utils/refreshDockerode.ts#L81

I doubt setting of SSH_AUTH_SOCK variable is necessary. I keep it undefined, but have IdentityAgent, IdentityFile, AddKeysToAgent in my .ssh/config. However the code referenced at the top makes my configuration unusable for this extension, while it perfectly works everywhere else outside vscode-docker.

Can this check be removed or replaced with something else? There are other options for SSH to avoid interactive password prompt, such as BatchMode or IdentitiesOnly.

Thank you!

microsoft/vscode-docker

Answer questions bwateratmsft

Dockerode indeed does not respect it, unfortunately; Dockerode is using the ssh2 node package which does not use .ssh/config. I would suggest filing this there because it would be a better solution for it to be implemented there (in ssh2).

useful!

Related questions

Error Message: connect EACCES /var/run/docker.sock hot 3
Error Message: connect EACCES /var/run/docker.sock hot 1
Debug not running hot 1
Error:connect ENOENT //.pipe/docker_engine hot 1
Error:connect ENOENT //.pipe/docker_engine hot 1
Improve error message when docker has not been found- ENOENT //./pipe/docker_engine hot 1
Connect to remote docker daemon when using "Remote - SSH" extension hot 1
VSCode: "No matching resources found." when using with Azure Container Registry extension hot 1
Starting container process caused "process_linux.go:297: applying cgroup configuration for process caused \"open hot 1
Error:connect ENOENT //.pipe/docker_engine hot 1
browse to containers step gives 401 error hot 1
Error Message: connect EACCES /var/run/docker.sock hot 1
Docker Machine crashes when managing Docker containers with vscode-docker plugin hot 1
Connect to remote docker daemon when using "Remote - SSH" extension hot 1
source:https://uonfu.com/
Github User Rank List