diff --git a/cmd/minikube/cmd/start.go b/cmd/minikube/cmd/start.go index 77b8b9409dd8..eeffd217ef6d 100644 --- a/cmd/minikube/cmd/start.go +++ b/cmd/minikube/cmd/start.go @@ -367,6 +367,14 @@ func runStart(cmd *cobra.Command, args []string) { } } + if config.VMDriver != constants.DriverNone && (selectedContainerRuntime == constants.CrioRuntime || selectedContainerRuntime == constants.Cri_oRuntime) { + fmt.Println("Restarting crio runtime...") + // restart crio so that it can monitor all hook dirs + if _, err := host.RunSSHCommand("sudo systemctl restart crio"); err != nil { + glog.Errorf("Error restarting crio: %v", err) + } + } + if config.VMDriver != constants.DriverNone && selectedContainerRuntime == constants.ContainerdRuntime { fmt.Println("Restarting containerd runtime...") // restart containerd so that it can install all plugins