You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for remote connections using SSH #1130
It would be awesome to have it implemented and released on docker-java.
Reacted by Kirill Andreev, Yanus Poluektovich, Peter LaValle, Julian Ruhe, Andreas, Julie, Bas Schoenmaeckers, beilharz, Matthias Wiedemann, Jop van Raaij and 34 more
I use RubyMine as an IDE. It uses this library to connect to Docker. I now need to access Docker containers on a remote machine, using SSH.
I can't do it from within the IDE, because this library doesn't support SSH. That means RubyMine throws all sorts of warnings about things not being installed, simply because it can't see the containers.
Is there any progress on this?
Failing that, is there a simple solution that works with RubyMine? The link posted by @pie-ai doesn't help, as entering /path/to/docker.sock as the engine API in RubyMine simply produces a NullPointerException. Entering file:///path/to/docker.sock just brings us back to "unsupported protocol scheme found" once more.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@unikitty37 although JetBrains are indirectly making money with docker-java, there is currently no major investment into maintaining docker-java from their side, nor sponsor the current maintainers.
If anything to be done on this issue, you should expect it from the community (e.g. the efforts by @mwiede).
Unfortunately, due to my limited capacity, I wasn't able to look at the implementation yet, but I eventually will. Thanks for up'ing the issue 👍 I ACKed it, so that it won't get stale anymore.
FYI #1818 removes the too restrictive protocol check in DefaultDockerClientConfig, so it becomes transport's concern whether some protocol is supported or not.
@mwiede yep, that was an intention - in the current form, it would be hard to accept it to docker-java's repo, but one can publish it separately, collect feedback, and, once it is stable enough, we could reconsider adding it to docker-java. Thank you!
Activity
jruhe-adesso commentedon Dec 11, 2019
ssh:// scheme still unsupported :(
boxlady commentedon Apr 4, 2020
This would be nice... a more secure remote connection.
firexel commentedon May 15, 2020
Since docker-machine is slowly dying, this would be nice to have to upload builds
pie-ai commentedon Jun 2, 2020
Mounting the remote socket looks good: https://medium.com/@dperny/forwarding-the-docker-socket-over-ssh-e6567cfab160
mwiede commentedon Jun 2, 2020
bsideup commentedon Jun 4, 2020
@mwiede nice! FYI in Testcontainers, we use the following dependency:
org.glassfish.main.external:trilead-ssh2-repackaged:4.1.2It was used for port forwarding and worked pretty well :) you may want to try it in your prototype
unikitty37 commentedon Jun 19, 2020
I use RubyMine as an IDE. It uses this library to connect to Docker. I now need to access Docker containers on a remote machine, using SSH.
I can't do it from within the IDE, because this library doesn't support SSH. That means RubyMine throws all sorts of warnings about things not being installed, simply because it can't see the containers.
Is there any progress on this?
Failing that, is there a simple solution that works with RubyMine? The link posted by @pie-ai doesn't help, as entering
/path/to/docker.sockas the engine API in RubyMine simply produces a NullPointerException. Enteringfile:///path/to/docker.sockjust brings us back to "unsupported protocol scheme found" once more.trajano commentedon Jun 20, 2020
Does the SSH transport merely call the
dockercommand on the remote or does it do something special to provide it access to the docker daemon?mwiede commentedon Jun 20, 2020
stale commentedon Jul 20, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
unikitty37 commentedon Jul 20, 2020
I'd hope that this issue wouldn't get auto-closed as stale!
I'd also hope that JetBrains might be able to take a look at fixing this, since they're making money off products using this library…
bsideup commentedon Jul 20, 2020
@unikitty37 although JetBrains are indirectly making money with docker-java, there is currently no major investment into maintaining docker-java from their side, nor sponsor the current maintainers.
If anything to be done on this issue, you should expect it from the community (e.g. the efforts by @mwiede).
Unfortunately, due to my limited capacity, I wasn't able to look at the implementation yet, but I eventually will. Thanks for up'ing the issue 👍 I ACKed it, so that it won't get stale anymore.
bsideup commentedon Feb 15, 2022
FYI #1818 removes the too restrictive protocol check in
DefaultDockerClientConfig, so it becomes transport's concern whether some protocol is supported or not.mwiede commentedon Feb 15, 2022
Thanks @bsideup this should make it possible to publish ssh transport module of #1440 separate from this project.
bsideup commentedon Feb 15, 2022
@mwiede yep, that was an intention - in the current form, it would be hard to accept it to docker-java's repo, but one can publish it separately, collect feedback, and, once it is stable enough, we could reconsider adding it to docker-java. Thank you!
mwiede commentedon Feb 22, 2022
FYI I have released a module supporting ssh protocol at https://github.com/mwiede/docker-java-transport-jsch
fsdrw08 commentedon Sep 24, 2023
any update about this request?
cvgaviao commentedon May 30, 2024
Is there a way to use it with TestContainers ?
fostermi commentedon Oct 24, 2024
@mwiede how would one deploy/install/use the docker-java-transport-jsch module in a running Jenkins instance, if you wouldn't mind?