Skip to content

Commit

Permalink
Need to restart crio, after stopping containerd
Browse files Browse the repository at this point in the history
If it fails to start up, it will never try again.
  • Loading branch information
afbjorklund committed Jan 20, 2019
1 parent 2c0b7da commit 3389344
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/minikube/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3389344

Please sign in to comment.