Skip to content
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

Run minikube as root #11383

Closed
Oliver-Sellwood opened this issue May 11, 2021 · 4 comments
Closed

Run minikube as root #11383

Oliver-Sellwood opened this issue May 11, 2021 · 4 comments
Labels
co/docker-driver Issues related to kubernetes in container kind/support Categorizes issue or PR as a support question. os/linux

Comments

@Oliver-Sellwood
Copy link

Oliver-Sellwood commented May 11, 2021

Hi I am looking for a way to run minikube as root with the Docker driver. In my workflow I am using sysbox system containers to help separate different projects I'm working on. Going great so far but trying to run minikube within one of these containers I get the error that it cannot be run as root.

Since I'm already inside a container when running minikube I don't really care if it has root and it's a little painful to have to create a user and deal with that side of things.

Given this situation is there any more danger in running minikube as root that I'm not considering and if I decide to go ahead anyway is there any way to force minikube to run as root

@afbjorklund
Copy link
Collaborator

Same as #8257

@afbjorklund afbjorklund added co/docker-driver Issues related to kubernetes in container os/linux kind/support Categorizes issue or PR as a support question. labels May 12, 2021
@Oliver-Sellwood
Copy link
Author

Oliver-Sellwood commented May 12, 2021

oh yup, my bad. the --force flag does the job.

Thanks

@afbjorklund
Copy link
Collaborator

afbjorklund commented May 12, 2021

Our main issues came from people running sudo minikube, which creates a mixture of files and directories owned by different users (both user and root). Running the entire process as root from start to finish "works", it's just considered as bad practice.

But when you have a dedicated virtual machine or a dedicated system container, it's a little different from running as root on your laptop. So maybe that scenario needs special handling, but it's also a bit different and has some usability* concerns as well.

* Like when trying to edit a file, or open a link. Need to be comfortable with the terminal.

I would prefer if we could document on how to set these CLI environments up "properly". For advanced use cases, like this.

@afbjorklund
Copy link
Collaborator

@Oliver-Sellwood : note that you are effectively running docker-in-docker-in-docker here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-driver Issues related to kubernetes in container kind/support Categorizes issue or PR as a support question. os/linux
Projects
None yet
Development

No branches or pull requests

2 participants