-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
none: minikube service/dashboard should show URL instead of opening browser when run with sudo #3558
Comments
You can use
But as long as you have the proper kube config, there is no need to run |
This is kind of a dupe of #2548 - but there is something we can do to make peoples lives easier here. The issue is that your X environment isn't configured to allow apps from one user draw in your display environment. This could also be fixed by implementing #3138 - we should be complaining very loudly when people execute minikube as root. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
If anyone feels interest in fixing this issue, my recommendation would be to check if the current user id is 0 and simply display the URL here: minikube/cmd/minikube/cmd/dashboard.go Line 130 in 68c546f
https://golang.org/pkg/os/user should help. |
Would like to work on it |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Please provide the following details:
Environment:
Minikube version:
no output
What happened:
I'm following this tutorial steps, but when I tried to run the command
sudo minikube service hello-node
it gives me this error:Note: I can't run this command without sudo because permission denied error
What you expected to happen:
I don't know what does this command.
How to reproduce it (as minimally and precisely as possible):
The commands that I typed:
Anything else do we need to know: I'm using the flag
--vm-driver=none
and i think I read that when this flag is used the command must be executed withsudo
The text was updated successfully, but these errors were encountered: