diff --git a/pkg/daemon/criruntime/factory.go b/pkg/daemon/criruntime/factory.go index 8b7628a76f..37f986c1bf 100644 --- a/pkg/daemon/criruntime/factory.go +++ b/pkg/daemon/criruntime/factory.go @@ -244,5 +244,15 @@ func detectRuntime(varRunPath string) (cfgs []runtimeConfig) { }) } } + + // cri-docker dockerd as a compliant Container Runtime Interface, detail see https://github.com/Mirantis/cri-dockerd + { + if _, err = os.Stat(fmt.Sprintf("%s/cri-dockerd.sock", varRunPath)); err == nil { + cfgs = append(cfgs, runtimeConfig{ + runtimeType: ContainerRuntimeCommonCRI, + runtimeRemoteURI: fmt.Sprintf("unix://%s/cri-dockerd.sock", varRunPath), + }) + } + } return cfgs }