add sudo -E to none docs

pull/8448/head
Medya Gh 2020-06-10 17:03:40 -07:00
parent ae555bf393
commit dd896b2569
2 changed files with 2 additions and 2 deletions

View File

@ -708,7 +708,7 @@ func validateUser(drvName string) {
useForce := viper.GetBool(force)
if driver.NeedsRoot(drvName) && u.Uid != "0" && !useForce {
exit.WithCodeT(exit.Permissions, `The "{{.driver_name}}" driver requires root privileges. Please run minikube using 'sudo minikube start --driver={{.driver_name}}'.`, out.V{"driver_name": drvName})
exit.WithCodeT(exit.Permissions, `The "{{.driver_name}}" driver requires root privileges. Please run minikube using 'sudo -E minikube start --driver={{.driver_name}}'.`, out.V{"driver_name": drvName})
}
if driver.NeedsRoot(drvName) || u.Uid != "0" {

View File

@ -18,7 +18,7 @@ Kubernetes v1.18+ needs conntract to be installed on debian based machines.
The none driver requires minikube to be run as root, until [#3760](https://github.com/kubernetes/minikube/issues/3760) can be addressed.
```shell
sudo minikube start --driver=none
sudo -E minikube start --driver=none
```
To make `none` the default driver: