[bug] Remove `jovyan` user from Jupyter Dockerfile
See original GitHub issueDescribe the bug
QHub uses actual usernames instead of the conventional jovyan
user, but that user still exists in the base Jupyterlab Dockerfile and has its own home directory in addition to the actual username: https://github.com/Quansight/qhub/blob/main/qhub/template/image/Dockerfile.jupyterlab#L11
This results in some unexpected behavior when running basic commands:
- creation of ssh keys appear exclusively in
/home/jovyan
folder, irrespective of user - other commands e.g.
ls
hit the/home/{username}
folder instead
Expected behaviour
Any and all commands should be run inside the user’s /home/{username}
folder, and /home/jovyan
should not exist.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
[bug] Remove jovyan user from Jupyter Dockerfile #1067
This results in some unexpected behavior when running basic commands: creation of ssh keys appear exclusively in /home/jovyan folder, ...
Read more >What is with the weird jovyan user? - Jupyter Community Forum
Jovyan is not really weird, but this seems like a bug to me. ... assume it's not a user on your local system,...
Read more >Jupyter Docker Stacks — Docker Stacks documentation
The use of the -v flag in the command mounts the current working directory on the host ( ${PWD} in the example command)...
Read more >Files · b50a463a416b49d86d89e940946e36d83fd7f9f6 ... - UNAVCO
If you need to change your docker run command, exit out of jupyter notebook (Control-C), stop, and remove the container before running a...
Read more >jupyterlab-pachyderm - PyPI
Building and running the extension in a Docker container allows us to use mount, ... to remove the symlink created by jupyter labextension...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We discussed this at our stand-up this morning and it sounds like it’s a fairly straightforward fix to remove
jovyan
entirely. I believe @tylerpotts @iameskild are tasked with it, and @costrouc will review the resulting PR.Closes by PR #1089