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

How to map to vscode? #62

Closed
dragon512 opened this issue Nov 16, 2021 · 6 comments
Closed

How to map to vscode? #62

dragon512 opened this issue Nov 16, 2021 · 6 comments

Comments

@dragon512
Copy link

This is more of a question I am sure people will start to ask. Is there a way to map logic to allow vscode to see this as docker running? At the moment given the base default setup I can run docker to do all the basic stuff on the CLI, however when I try to load vs code to do a remote docker dev environment, I get an error message that vscode about docker is not running. I am not sure if anyone know if there is a work around to this. It would be great if there was.

@abiosoft
Copy link
Owner

abiosoft commented Nov 16, 2021

If you are on v0.2.2, it is supposed to work out of the box.

If you're on latest development version, it makes use of docker context to avoid disrupting existing docker settings. All you need to do is set docker context to colima in settings, or edit the settings json file and add "docker.context": "colima".

@dragon512
Copy link
Author

dragon512 commented Nov 18, 2021

I am running version 0.2.2. From the cli docker commands seem to run. From vs studio I am getting an error as vscode connection to a container defined by the local devcontainer.json with a
failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

I am guessing docker-credential-desktop is the issue. Not sure if anything can be done with this

@abiosoft
Copy link
Owner

Checked the solution in this issue. #52

@dragon512
Copy link
Author

Yep that seems to be it. I changed to it to ~/.docker/config.json to
{ "credsStore" : "osxkeychain", "auths" : { } }
and that seems to fix it.

I also did rm ~/.docker/config.json and that seems to work as well

Now having issues with read-only mounts. looking at other issues here to see if there a solution

@abiosoft
Copy link
Owner

I will be closing this as the issue itself is resolved

As for writeable mounts, you can use the --mount flag. And in version 0.3.0, mounts are going to default to writeable.

Thanks.

@heitorsilva
Copy link

Please note that the docker.context config is not valid anymore... follow what was said here

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

3 participants