admin管理员组

文章数量:1400294

I started colima with containerd runtime. For any docker command I am getting error Cannot connect to the Docker daemon at unix:///Users/myusername/.colima/docker.sock. Is the docker daemon running?

Note:When I performed the same with docker runtime, it works fine.

colima version: 0.8.1

.colima/default/daemon/daemon.log

time="2025-03-24T11:25:32+05:30" level=info msg="- - - - - - - - - - - - - - -"
time="2025-03-24T11:25:32+05:30" level=info msg="daemon started by colima"
time="2025-03-24T11:25:32+05:30" level=info msg="Run `/usr/bin/pkill -F /Users/myusername/.colima/default/daemon/daemon.pid` to kill the daemon"
time="2025-03-24T11:25:32+05:30" level=info msg="waiting for VM to start" context=inotify
time="2025-03-24T11:25:32+05:30" level=info msg="waiting 5 secs for VM" context=inotify
time="2025-03-24T11:25:38+05:30" level=info msg="waiting 5 secs for VM" context=inotify
time="2025-03-24T11:25:43+05:30" level=info msg="waiting 5 secs for VM" context=inotify
time="2025-03-24T11:25:53+05:30" level=info msg="waiting 5 secs for VM" context=inotify
time="2025-03-24T11:26:03+05:30" level=info msg="waiting 5 secs for VM" context=inotify
time="2025-03-24T11:26:08+05:30" level=info msg="waiting 5 secs for VM" context=inotify
time="2025-03-24T11:26:17+05:30" level=info msg="VM started" context=inotify
time="2025-03-24T11:26:27+05:30" level=error msg="error retrieving containerd namespaces: error running [lima sudo nerdctl namespace list -q], output: \"time=\\\"2025-03-24T11:26:26+05:30\\\" level=fatal msg=\\\"cannot access containerd socket \\\\\\\"/run/containerd/containerd.sock\\\\\\\": no such file or directory\\\"\", err: \"exit status 1\"" context=inotify

docker context ls

NAME              DESCRIPTION                               DOCKER ENDPOINT                                 KUBERNETES ENDPOINT                     ORCHESTRATOR
default *         Current DOCKER_HOST based configuration   unix:///Users/myusername/.colima/docker.sock       https://132.226.113.90:6443 (default)   swarm
desktop-linux                                               unix:///Users/myusername/.docker/run/docker.sock                                           
rancher-desktop   Rancher Desktop moby context              unix:///Users/myusername/.rd/docker.sock  

本文标签: Cannot connect to the Docker daemon using Colima with containerdStack Overflow