-
Notifications
You must be signed in to change notification settings - Fork 3k
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
docker-stacks in kubernetes --user root config #477
Comments
Sorry, I'm not too familiar with kubernetes. Are you saying sudo for the @yuvipanda @choldgraf @willingc have great k8s experience and might understand what you're after far better than I. |
I was unable to get sudo to work for the jovyan user. It looked like you needed to run the container with -e GRANT_SUDO=yes as well as execute it with the docker --user root argument. It looks like there's no obvious way to issue the --user root argument in kubernetes. My workaround was to use the jupyter all-spark image as base and extend:
by adding |
Thanks for the tag, @parente! By default Kubernetes just runs the container with the user that's specified as USER in the Dockerfile. However, you can override it by specifying a securityContext.runAsUser explicitly (https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ for more info). So you probably want |
@luck02 I think @yuvipanda answered your question and that you found an alternative solution. I'm going to close out this issue. Cheers! |
Sorry, I should have closed earlier :( I got the email but then got busy and forgot to check back. Thanks @yuvipanda ! |
Hi! Thanks for using Jupyter's docker-stacks images.
If you are requesting a library upgrade or addition in one of the existing images, please state the desired library name and version here and disregard the remaining sections.
More of a question than an upgrade request.
We're running a kubernetes based infra and I'd like to be able to provide quick and simple pyspark style notebooks for my users.
I whipped this up:
And it worked, until I needed root to modify the image in place (a pre-requisite... I generally make modifications, test them and then codify the changes).
I see the instructions in the notebooks state:
I don't think there's a way to suit that requirement in Kubernetes (at least not to my knowledge). If there is great, if not has anyone else run into this?
If not is there interest in making this feature (root user) available via an environment variable or some other mechanism? IE a command arg in kubernetes.
I've done a bit of digging into the various start scripts, presumably there's a mechanism to call them with the correct setup, but it doesn't seem overly documented or intended.
The text was updated successfully, but these errors were encountered: