Open Jeffwan opened 9 months ago
安装的时候,带上 --set daemon.socketLocation=/var/run/,daemon.socketFile=cri-dockerd.sock 因为源码里面:CRISocketFileName = flag.String("socket-file", "", "The name of CRI socket file, and it should be in the mounted /hostvarrun directory.") 还有就是: // docker { , err1 := os.Stat(fmt.Sprintf("%s/docker.sock", varRunPath)) , err2 := os.Stat(fmt.Sprintf("%s/dockershim.sock", varRunPath)) if err1 == nil && err2 == nil { cfgs = append(cfgs, runtimeConfig{ runtimeType: ContainerRuntimeDocker, runtimeURI: fmt.Sprintf("unix://%s/docker.sock", varRunPath), runtimeRemoteURI: fmt.Sprintf("unix://%s/dockershim.sock", varRunPath), }) } else if err1 == nil && err2 != nil { klog.Errorf("%s/docker.sock exists, but not found %s/dockershim.sock", varRunPath, varRunPath) } else if err1 != nil && err2 == nil { klog.Errorf("%s/dockershim.sock exists, but not found %s/docker.sock", varRunPath, varRunPath) } } 用到的是runtimeURI,而不是runtimeRemoteURI,所以规避这个错误就行
Description
I am installing https://openkruise.io/ on MacOS kubernetes and face a problem.
/var/run/docker.sock
is there but there's no other shim layer. I assume it uses cri-docker but I can not find it. I can not find kubelet process as well. Can I know where to check the settings?Reproduce
just install the kruise app. nothing special
Expected behavior
No response
docker version
docker info
Diagnostics ID
867FDD0B-D0BD-49BF-B422-4A364B709818/20240304084302
Additional Info
No response