Skip to content

Commit

Permalink
Fix: issue cri-dockerd runtime not being found
Browse files Browse the repository at this point in the history
  • Loading branch information
FlikweertvisionVadym authored Jan 27, 2025
1 parent c393385 commit e7338b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/daemon/criruntime/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ func detectRuntime(varRunPath string) (cfgs []runtimeConfig) {
runtimeRemoteURI: fmt.Sprintf("unix://%s/cri-dockerd.sock", varRunPath),
})
}
if _, err = os.Stat(fmt.Sprintf("%s/cri-dockerd/cri-dockerd.sock", varRunPath)); err == nil {
cfgs = append(cfgs, runtimeConfig{
runtimeType: ContainerRuntimeCommonCRI,
runtimeRemoteURI: fmt.Sprintf("unix://%s/cri-dockerd/cri-dockerd.sock", varRunPath),
})
}
}
return cfgs
}

0 comments on commit e7338b3

Please sign in to comment.