tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp is operating on host filesystem instead of container filesyste


From: Michael Albinus
Subject: Re: Tramp is operating on host filesystem instead of container filesystem
Date: Wed, 13 May 2020 17:23:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Camden Narzt <address@hidden> writes:

Hi Camden,

> Using the docker-tramp package from Melpa (installed via
> package-list-packages) the file path portion of the completion still
> shows the files on the host filesystem, and opens files on the host OS
> when I write a path manually.

I have started "docker run -it --name alpine --rm alpine:latest sh", my
usual test case. Then I've started Emacs 26.3 via "emacs -Q".

In Emacs, I have loaded the docker-tramp package via

--8<---------------cut here---------------start------------->8---
(load-library 
"~/.emacs.d/elpa/docker-tramp-20170207.325/docker-tramp-autoloads.el")
(setq docker-tramp-use-names t)
--8<---------------cut here---------------end--------------->8---

Now I can do

--8<---------------cut here---------------start------------->8---
C-x C-f /doc <TAB>
=> /docker:

alp <TAB>
=> /docker:alpine:

<TAB> <TAB>
=> /docker:alpine:.
=> Possible completions are:
   ../
   ./
   .ash_history
--8<---------------cut here---------------end--------------->8---

All of this looks OK to me. Could you pls check, whether this works also
for you?

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]