emacs-pe / docker-tramp.el

TRAMP integration for docker containers
339 stars 26 forks source link

Ignore errors when collecting names for completion #5

Closed legoscia closed 8 years ago

legoscia commented 8 years ago

If the Docker container you want to access is on a remote machine (using Tramp's multi-hop syntax, e.g. /ssh:user@host|docker:abc123:), but the local machine doesn't have the "docker" binary, then completion would signal an error, which would abort the minibuffer prompt when opening a file.

With this change, errors from "docker ps" are silently ignored, thus enabling the use of remote Docker containers, though without name completion.

marsam commented 8 years ago

Cool, thanks!