Gene Goykhman <[email protected]> writes: > Hello and thank you for making TRAMP amazing!
Hi Gene, > I don't know whether this is a bug or currently unsupported > functionality, but I am trying to get docker-container support through an > ssh connection and it is not working. docker-container works fine for > docker running on the local machine. > > However: > > M-x find-file RET /ssh:root@remotehost|docker: > > Also suggests the SAME list of docker containers running on the local > host, rather than the (expected) list of containers on remotehost. Yes, this is a general weakness of Tramp, for all methods. It doesn't complete user and host names for multi-hop names but the first hop. Perhaps I shall add something which doesn't offer completion in this case. > I tried ignoring the (incorrect) completion candidates and manually typing > the name of the > running docker container on the remote host as follows: > > M-x find-file RET /ssh:root@remotehost|docker:remotecontainername > > But that opened a new, empty buffer in Fundamental mode and emitted the > error: "File not found and directory write-protected" This misses the trailing colon, you need M-x find-file RET /ssh:root@remotehost|docker:remotecontainername: > Is using TRAMP to connect to docker containers running on a remote host > via ssh (i.e. multihop) supported? If so, could you point me to some > information or > instructions? Yes, it is supported. I test it regularly with the regression tests. If it still doesn't work for you, pls set tramp-verbose to 6 and rerun the test. Show the resulting Tramp debug buffer. > Thank you! Best regards, Michael.
