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

Unable to run cdebug with MacBook M2 #47

Open
borja-rivera opened this issue Jun 18, 2024 · 1 comment
Open

Unable to run cdebug with MacBook M2 #47

borja-rivera opened this issue Jun 18, 2024 · 1 comment

Comments

@borja-rivera
Copy link

Hello,

I am trying to use the tool on a MacBook M2 and when I try to run a container I get this error:

$ debug exec -it mycontainer
> cdebug: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

Docker is already running using colima.

Has anyone else had this happen?

Thanks!

@iximiuz
Copy link
Owner

iximiuz commented Jun 22, 2024

Hi @borja-rivera,

I'm afraid Lima is not one of the (seamlessly) supported runtimes at the moment. You still can use cdebug from inside of the Lima VM (via limactl shell) - something like cdebug exec -it containerd://mycontainer should do the trick. Or, you can try using the --runtime flag to point cdebug to Lima's docker.sock location like this cdebug exec --runtime $(limactl list docker --format 'unix://{{.Dir}}/sock/docker.sock') nerdctl://mycontainer. However, I haven't tried the latter.

Curious about your findings!

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