emacs-pe / docker-tramp.el

TRAMP integration for docker containers
340 stars 25 forks source link

Possible to Use When Docker Not Installed Locally? #25

Closed julienchastang closed 3 years ago

julienchastang commented 5 years ago

This is a great project that has saved me a lot of time.

Is it possible to access remote docker containers on other hosts when docker is not installed locally?

I'm trying to use this project from my Android device with no Docker installation possible and helm-tramp complains about not finding docker.

marsam commented 5 years ago

Right now docker-tramp depends on the docker executable, but I think it we could use Docker API directly. Unfortunately, docker-api.el is sill in early-development stage, and I don't have time to work on this.

p3r7 commented 4 years ago

In fact you can with tramp multi hops.

You need to first hop onto the remote docker host with a supported protocol (e.g. ssh) and then rely on the docker command on this host.

For example : /ssh:192.168.0.2|docker:container:/