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.
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.