Silex / docker.el

Manage docker from Emacs.
752 stars 77 forks source link

Emacs and docker tramp TTY problem #175

Closed asmodeus812 closed 2 years ago

asmodeus812 commented 3 years ago

Hi, I was recently playin with the docker package from this page - https://github.com/Silex/docker.el Which I think is using docker tramp. But i am unable to work around a very annoying problem. When i try to trigger the exec command, it constantly throws a warning or error. Attached shots below. I am quite confused and was unable to find any solution online, actually no one seems to have had this issue ? @Silex

docker exec -it keycloak sh && extit || exit the input device is not a TTy. If you are using mintty try prefixing the command with winpty

helm-M-x-execute-command: Tramp failed to connect. If this happens repeatedly, try M-x tramp-cleanup-this-connection

Silex commented 2 years ago

If the issue is with docker-tramp you'd ask here: https://github.com/emacs-pe/docker-tramp.el

But anyway it looks like you try to run docker exec -it keycloak sh from helm-M-x-execute-command... that won't work.

Try using M-x term and run the command there, and if that doesn't work try using vterm.

In this package you are supposed to use docker-container-shells (b key when listing containers). In docker-tramp you are supposed to do something like C-x C-f /docker:user@container:/path/to/file.

Silex commented 2 years ago

Closing due to inactivity.