Skip to content

Commit

Permalink
add check for docker container-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
klaases committed Jul 28, 2022
1 parent f5b83d4 commit 14ba826
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/minikube/machine/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ func postStartSetup(h *host.Host, mc config.ClusterConfig) error {
return nil
}

if driver.IsNone(h.DriverName) {
// If none driver with docker container-runtime, require cri-dockerd and dockerd.
if driver.IsNone(h.DriverName) && mc.KubernetesConfig.ContainerRuntime == constants.Docker {
// If Kubernetes version >= 1.24, require both cri-dockerd and dockerd.
k8sVer, err := semver.ParseTolerant(mc.KubernetesConfig.KubernetesVersion)
if err != nil {
Expand Down

0 comments on commit 14ba826

Please sign in to comment.