Skip to content

Commit

Permalink
support cri-dockerd.sock for docker runtime
Browse files Browse the repository at this point in the history
Signed-off-by: joey <zchengjoey@gmail.com>
  • Loading branch information
chengjoey committed Jun 11, 2024
1 parent 0e69ed4 commit b7f0851
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/daemon/criruntime/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit b7f0851

Please sign in to comment.