-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Mounting volume to a directory in $NB_USER breaks init.sh #1
Comments
If 👉 This is because of
The bind mounted home directory is only populated if it is empty. |
|
Will do. |
That also precludes having any data in the host mounting location as well. Is the solution to mount a working directory to another location? |
Correct. Bind mounting is only supported for empty folders.
I suggest mounting any other [host] folder as a subfolder of |
I had the following in mind:
Footnotes
|
@njacobson-nci Is https://github.com/b-data/jupyterlab-python-docker-stack/blob/main/CUDA.md#run-container OK? If yes, please close this issue. |
Yeah thanks for documenting that! |
❗ Bind mounting a subfolder of the home directory is only possible for images with Python version ≥ 3.12.2. |
It appears that mounting a volume to $NB_USER/work will cause a failure in before-notebook.d init.sh.
The only change between these two commands is the volume mounting location inside the container. I removed everything except the bare minimum from the commands I'm running to see what causes the failure. Even explicitly setting the workdir to /home/njacobson or /home/jovyan fails.
It's not an unworkable issue, but it is strange and it's not specific to the work/ folder name. Figure it's worth documenting at least so others don't have to debug it.
Love the repo though, really great work.
The text was updated successfully, but these errors were encountered: