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

Could not connect to remote docker server #568

Closed
davidkhala opened this issue Apr 15, 2020 · 3 comments
Closed

Could not connect to remote docker server #568

davidkhala opened this issue Apr 15, 2020 · 3 comments

Comments

@davidkhala
Copy link

davidkhala commented Apr 15, 2020

Configured as documented, but the connection fallback to target local host instead of a remote host
No matter how I set host or port (even with those non-exist ones)

Influenced environment
dockerode@3.2.0
Docker version 19.03.8,

@rystaf
Copy link

rystaf commented Apr 15, 2020

#540

@davidkhala
Copy link
Author

I get it fixed by explicitly setting protocol to be 'ssh', but then another question is, why http(s) protocol is default?
Most google returned search results about access remote docker host use DOCKER_HOST env variable starting with ssh://.

@apocas
Copy link
Owner

apocas commented Apr 22, 2020

#540 was fixed.

SSH support in the Docker Remote API is way more recent than HTTP, that's why :)
dockerode was created when Docker's Remote API was very very young, few years ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants