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

Integration with VSCode #392

Closed
ksaur opened this issue Sep 28, 2021 · 3 comments
Closed

Integration with VSCode #392

ksaur opened this issue Sep 28, 2021 · 3 comments

Comments

@ksaur
Copy link
Contributor

ksaur commented Sep 28, 2021

Hello, I would like to try to use nerdctl with VSCode. When VSCode starts, it checks for Docker with:

[342501 ms] Remote-Containers 0.194.3 in VS Code 1.60.2 (7f6ab5485bbc008386c4386d08766667e155244e).
[342501 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[342637 ms] 
[342638 ms] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

My first thought was to point VSCode to point to lima nerdctl by using an environment variable to sub out docker. But this command gives the error of:

$ lima nerdctl version --format {{.Server.APIVersion}}
FATA[0000] template: :1:9: executing "" at <.Server.APIVersion>: can't evaluate field APIVersion in type *dockercompat.ServerVersion

Is there a current way to make VSCode work with nerdctl? If not, what needs to be done?

@AkihiroSuda
Copy link
Member

VS Code would need to be modified to support nerdctl

@ksaur ksaur closed this as completed Sep 29, 2021
@vlushn
Copy link

vlushn commented Nov 24, 2021

VS Code link: microsoft/vscode-remote-release#5538

@brad-jones
Copy link

FWIW I just gave nerdctl a go with devcontainers & ran into the same issue. Hacked up a super simple bash shim to give vscode the right value for .Server.APIVersion but then ran into another CLI incompatibly. Missing --sig-proxy flag for the run command. I gave up at that point.

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

No branches or pull requests

4 participants