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
What is the password for using "sudo apt-get install" command? #949
Comments
There's no password as far as I know. Have you tried adding "-e GRANT_SUDO=yes" as illustrated below? docker run -d -v $PWD:/home/jovyan/work -e GRANT_SUDO=yes --user root -p 8888:8888 jupyter/all-spark-notebook |
Running into the same issue. Trying to install curl. |
Reading the docker files, I see they point back to So the ubuntu:bionic pinned image runs as root, and does not have sudo. Trying sudo from The Dockerfile creates the The man page for The start.sh script will open up password-less sudo if you pass an ENV with GRANT_SUDO=1 (or yes). |
I'm not an official project volunteer, so someone with more knowledge might want to chime in. This worked for me. To build your own custom jupyter docker image with curl
To test:
|
I tried, but it doesn't work for me... |
I have just tried: then
It all works fine, what error messages do you see? |
I try it OK,thanks |
This question comes up from time to time. I've opened a PR adding more explicit section in the documentation about how to grant the |
adding the following to the base model, works for me: |
If you want to understand the I will add that if the way the maintainers have chosen to handle users and password, you can change it in a Dockerfile. I explain how to add/change user/password in https://askubuntu.com/a/1307156/146273
This would also work if username=root, but you will need to prevent pam from denying use of su (default behavior in base-notebook). I do this in my Dockerfile like so:
|
You need to do this in docker-compose:
|
GRANT_SUDO in docker compose does not work. I have it enabled
|
@gerroon you need to use |
This is how one can login as su
@mathbunnyru thanks, but that one does not give any docker-compose setting |
Hi all,
I want to install some software on the docker container, but when I use
apt-get install xxx
, then I will get a "permission denied" problem. So I guess, I should use "sudo apt-get install xxx", my question is what is the password for thesudo
command?The text was updated successfully, but these errors were encountered: