add sudo -E to none docs
parent
ae555bf393
commit
dd896b2569
|
@ -708,7 +708,7 @@ func validateUser(drvName string) {
|
||||||
useForce := viper.GetBool(force)
|
useForce := viper.GetBool(force)
|
||||||
|
|
||||||
if driver.NeedsRoot(drvName) && u.Uid != "0" && !useForce {
|
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" {
|
if driver.NeedsRoot(drvName) || u.Uid != "0" {
|
||||||
|
|
|
@ -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.
|
The none driver requires minikube to be run as root, until [#3760](https://github.com/kubernetes/minikube/issues/3760) can be addressed.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo minikube start --driver=none
|
sudo -E minikube start --driver=none
|
||||||
```
|
```
|
||||||
|
|
||||||
To make `none` the default driver:
|
To make `none` the default driver:
|
||||||
|
|
Loading…
Reference in New Issue