Open WojciechNagorski opened 3 years ago
@galvesribeiro do you have plan to fix add this ability? connect to docker with ssh
@behnam-basketasia I assume PR are most welcome ;-)
There is already a fork TrapTech.Docker.DotNet.SSH which is providing the function you are asking for. Maybe that fork can merged into here. (https://github.com/TrapTech/Docker.DotNet) I personally would prefer that the ssh support is build into this lib here.
My use case: I'm not exposing docker api on remote hosts for security reasons. I also don't install any docker stuff on my windows computer. This is the reason why I rely on the the SSH. I also use the test containers linked in a comment before.
Steps to reproduce the issue:
DockerClient
that use connection via SSHWhat actually happened?:
I've got an excetption:
What did you expect to happen?:
I should be able to use remote Docker via SSH. Currently Docker CLI has support for Docker context. I think I should be able to use
Docker.DotNet
API in the same way.For Example, I can add Docker context using the following command:
Then I can use the remote Docker engine using the
--context
parameter:More information:
Currently I can't use either Docker Engine via SSH or docker context.
Additional information:
Output of
dotnet --info
:What version of Docker.DotNet?: