Connect to Docker on Remote Host?
Is it possible to connect in a secure way to docker running on a remote host - i.e. not my local machine? I don't need debugging capabilities on the remote server; I just want to be able to use the services panel to browse images and containers using the same UI as my local machine.
I can't find anything in the docs about this. Is it possible?
Please sign in to leave a comment.
I just don't understand why connecting via SSH isn't an option here...
Because it's a missing feature: https://youtrack.jetbrains.com/issue/IDEA-202233
You can either 1) expose the Docker daemon on a TCP port and connect to it or 2) create the tunnel manually.
Thanks for the info. I upvoted that feature request.
As for the TCP approach, that’s not secure, is it?
As for the socket forwarding approach, would that enable me use the IDEA UI to interact with containers on both the local and remote machines? It seems not.
That's not, correct.
Why? You don't have to overwrite the local docker.sock with the remote one, you can even map the remote one to a local TCP port: https://youtrack.jetbrains.com/issue/PY-33489#focus=streamItem-27-3922425.0-0
Feature is now available in Intellij. See https://youtrack.jetbrains.com/issue/IDEA-202233#focus=Comments-27-5169754.0-0