doomemacs / doomemacs/core

Can't edit file inside "Docker" container using Podman

Open
#6,079 1 comment 0 reactions 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

counsel-find-file /docker:containerid:/ should list files inside the container.

### What actually happened?

Got this error:
> tramp-signal-hook-function: Tramp failed to connect.

When I had:
`ln -s /usr/bin/podman ~/.local/bin/docker`

With:
`update-alternatives --install /usr/local/bin/docker docker /usr/bin/podman 20`
The instance + path was treated as a directory:
> Directory `/docker:@7f205ea6e8ec:/' does not exist! Create it? (y or n)

If I remove the @ from the item in the list(counsel-find-file), it works
`/docker:7f205ea6e8ec:/`

### Describe your attempts to resolve the issue

I have tried to connect to the same Docker container from a clean Emacs with just docker-tramp install and from prelude which also as my Doom install uses counsel-find-file. They where both success full

Tried with and without evil mode

Tried to link podman as docker as described above

tried:

```elisp
(setq docker-tramp-docker-executable "podman")
```

### Steps to reproduce

1. Open Emacs
2. SPC . or counsel-find-file
3. /docker:containerid:/

### System Information

https://pastebin.com/gEWnTpRU

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the `/docker:containerid:/` flow through `counsel-find-file` with `docker-tramp`, comparing the Podman setup with the working path after removing `@`. Check the `docker-tramp-docker-executable` setting and the reported Tramp error; done means container paths work through the Doom/Prelude workflow without manual editing.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, emacs, emacs-lisp
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.