Skip to content

Integration with VSCode #392

@ksaur

Description

@ksaur

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions