Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotFound: No such file or directory #151

Open
mikelue opened this issue Dec 25, 2023 · 7 comments
Open

NotFound: No such file or directory #151

mikelue opened this issue Dec 25, 2023 · 7 comments

Comments

@mikelue
Copy link

mikelue commented Dec 25, 2023

Not working comands(I only tried these ones):

  • :DockerImages
  • :e docker://images

Error messages

[denops] NotFound: No such file or directory (os error 2)
[denops]     at Object.connect (ext:deno_net/01_net.js:486:66)
[denops]     at connect (file:///home/mike/.vim/plugged/denops-docker.vim/denops/docker/socket.ts:10:18)
[denops]     at request (file:///home/mike/.vim/plugged/denops-docker.vim/denops/docker/http.ts:35:24)
[denops]     at Module.get (file:///home/mike/.vim/plugged/denops-docker.vim/denops/docker/http.ts:77:22)
[denops]     at Module.images (file:///home/mike/.vim/plugged/denops-docker.vim/denops/docker/docker.ts:14:27)
[denops]     at Module.updateImagesBuffer (file:///home/mike/.vim/plugged/denops-docker.vim/denops/docker/action.ts:197:31)
[denops]     at eventLoopTick (ext:core/01_core.js:183:11)
[denops]     at async Object.images (file:///home/mike/.vim/plugged/denops-docker.vim/denops/docker/main.ts#46.541357:240:7)
[denops]     at async dispatch (https://deno.land/x/messagepack_rpc@v1.0.0/dispatcher.ts:36:12)
[denops]     at async Session.#dispatch (https://deno.land/x/messagepack_rpc@v1.0.0/session.ts:233:22)

My environment:

  • VIM 9.0.1600
  • Deno
deno 1.35.3 (release, x86_64-unknown-linux-gnu)
v8 11.6.189.12
typescript 5.1.6
  • denops.vim v5.0.0

Any response would be appreciated.

@skanehira
Copy link
Owner

@mikelue Thank you.
Maybe your environment doesn't exist /var/run/docker.sock
Can you run docker context ls and tell me that's output?

This is my output.

$ docker context ls                                               
NAME                TYPE                DESCRIPTION                               DOCKER ENDPOINT                                     KUBERNETES ENDPOINT   ORCHESTRATOR
default             moby                Current DOCKER_HOST based configuration   unix:///var/run/docker.sock                                               

If your using Docker Desktop(on macOS), please check Allow the default Docker socket to be used (requires password) and restart, then you can run command.

image

@mikelue
Copy link
Author

mikelue commented Dec 25, 2023

NAME             DESCRIPTION                               DOCKER ENDPOINT               ERROR
default          Current DOCKER_HOST based configuration   unix:///var/run/docker.sock
dev-linux                                                  ssh://dev-linux
dev-minikube *                                             ssh://dev-minikube
pc-linux                                                   ssh://pc-linux

It seems that I'm using ssh tunnel to manage remote docker engine causing the problem.

@skanehira
Copy link
Owner

Seems like you have unix:///var/run/docker.sock
Can you check that file exists ?

ls unix:///var/run/docker.sock

@mikelue
Copy link
Author

mikelue commented Dec 28, 2023

No, I don't have the file in my environment.(Windows, WSL 2, Ubuntu 22.04).

And I do use SSH for managing remote docker.

@skanehira
Copy link
Owner

Ok, I got the situation.
Sorry about this plugin doesn't support remote docker
Mabye implement it future if I have motivation

@skanehira
Copy link
Owner

skanehira commented Dec 28, 2023

If there is a away to bind remote docker socket communication to local socket, it might works 🤔

@mikelue
Copy link
Author

mikelue commented Mar 5, 2024

If there is a away to bind remote docker socket communication to local socket, it might works 🤔

This is a viable solution.

Supporting context of docker could be a feature for this plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants