question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Remove `jovyan` user from Jupyter Dockerfile

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
magsolcommented, Feb 17, 2022

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.

0reactions
costrouccommented, Feb 22, 2022

Closes by PR #1089

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found