Skip to content

Commit

Permalink
support cri-dockerd.sock for docker runtime (#1634)
Browse files Browse the repository at this point in the history
Signed-off-by: joey <zchengjoey@gmail.com>
  • Loading branch information
chengjoey committed Jun 12, 2024
1 parent 8e2f8f5 commit 0313790
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 0313790

Please sign in to comment.