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
Support remote docker over ssh #3831
Conversation
Signed-off-by: David Gageot <david.gageot@docker.com>
Signed-off-by: David Gageot <david.gageot@docker.com>
Signed-off-by: David Gageot <david.gageot@docker.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I tested by setting DOCKER_HOST=ssh://username@windows.host
on my Mac (to be adventurous) and then linuxkit build -format iso-efi examples/getty.yml
. Initially I wasn't sure what was happening but then I deliberately misconfigured my Windows Docker Desktop HTTP proxy and verified that the error was reported on my Mac.
Hi @deitch, do you think this one can be merged too? It pretty important when using a remote docker to be able to connect over ssh. |
I am not sure I get the use case. Is this for building packages |
@deitch When one sets DOCKER_HOST or creates a docker context, linuxkit will indeed pick it up correctly. However, if the docker daemon that this points to is reached over ssh, linuxkit will fail to actually talk to the daemon. |
I still don't fully get it.
|
It's for It adds the support to Let's say I run those commands to create a dedicated context:
Because linuxkit doesn't support |
OK got it. |
I've got a remote docker daemon that I connect to over ssh.
Something like
DOCKER_HOST=ssh://docker-remote docker ps
works wellWhen I use linuxkit, with
DOCKER_HOST
set tossh://docker-remote
it'll silently fail to connect.This introduced the support for a remote docker over ssh.
Signed-off-by: David Gageot david.gageot@docker.com