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

feat(macOS): Support Lima #419

Closed
rudeigerc opened this issue Jun 17, 2022 · 4 comments
Closed

feat(macOS): Support Lima #419

rudeigerc opened this issue Jun 17, 2022 · 4 comments

Comments

@rudeigerc
Copy link
Member

Description

envd would use the default context even if the default context of docker was changed.

Reproduction

# default context is `lima`
$ docker context list
NAME                TYPE                DESCRIPTION                               DOCKER ENDPOINT                                         KUBERNETES ENDPOINT                 ORCHESTRATOR
default             moby                Current DOCKER_HOST based configuration   unix:///var/run/docker.sock                             https://127.0.0.1:49413 (default)   swarm
desktop-linux       moby                                                          unix:///Users/rudeigerc/.docker/run/docker.sock                                             
lima *              moby                                                          unix:///Users/rudeigerc/.lima/docker/sock/docker.sock

# docker works well with `lima`
$ docker images 
REPOSITORY         TAG       IMAGE ID       CREATED         SIZE
envd-quick-start   dev       5429274991ac   5 minutes ago   757MB
moby/buildkit      v0.10.3   a2c9241854f2   5 weeks ago     142MB

# envd uses `default`
$ envd get envs
error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Additional Info

envd: v0.1.0-alpha.12+8531491
  BuildDate: 2022-06-17T01:20:35Z
  GitCommit: 853149189d88e6ecf6a5a924e3aa19d8f7993f7e
  GitTreeState: clean
  GoVersion: go1.18.3
  Compiler: gc
  Platform: darwin/amd64
@gaocegege
Copy link
Member

Thanks for the issue! I will have a look ASAP.

@gaocegege
Copy link
Member

We use docker client golang package to communicate with the Docker daemon. I am not sure if the package supports context.

@gaocegege
Copy link
Member

The context info is stored in ~/.docker/config.json:

{
	"auths": {...
	},
	"currentContext": "docker-test"
}

We cannot get it without reading the file.

@gaocegege
Copy link
Member

I think we should support #92 instead.

@gaocegege gaocegege added the wontfix This will not be worked on label Jun 17, 2022
@rudeigerc rudeigerc closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2022
@gaocegege gaocegege changed the title bug: envd does not follow docker context feat(macOS): Support Lima Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

No branches or pull requests

2 participants