Skip to content

Commit

Permalink
Stop containerd from running, if it is not desired
Browse files Browse the repository at this point in the history
Apparently some grpc services are conflicting with crio

"Failed to start streaming server: listen tcp 10.0.2.15:10010: bind: address already in use"
  • Loading branch information
afbjorklund committed Jan 20, 2019
1 parent 9a9c762 commit 2c0b7da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/minikube/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@ func runStart(cmd *cobra.Command, args []string) {
glog.Errorf("Error stopping rkt: %v", err)
}
}
if config.VMDriver != constants.DriverNone && selectedContainerRuntime != constants.ContainerdRuntime {
if _, err = host.RunSSHCommand("sudo systemctl stop containerd"); err != nil {
glog.Errorf("Error stopping containerd: %v", err)
}
}

if config.VMDriver != constants.DriverNone && selectedContainerRuntime == constants.ContainerdRuntime {
fmt.Println("Restarting containerd runtime...")
Expand Down

0 comments on commit 2c0b7da

Please sign in to comment.