From 975602e2d08fd8ac36f0e860c2e4efbdabbdfaf4 Mon Sep 17 00:00:00 2001 From: Jonas Waeber <jonas.waeber@unibas.ch> Date: Mon, 24 Feb 2025 11:10:46 +0100 Subject: [PATCH] add NB_UID --- jupyterhub_config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jupyterhub_config.py b/jupyterhub_config.py index b0c7e78..8684e8f 100644 --- a/jupyterhub_config.py +++ b/jupyterhub_config.py @@ -1140,6 +1140,10 @@ c.DockerSpawner.notebook_dir = notebook_dir # notebook directory in the container c.DockerSpawner.volumes = {"/cache/jupyterhub/users/{username}": notebook_dir} +c.SwarmSpawner.environment = { + 'NB_UID': 8983 +} + # Remove containers once they are stopped c.DockerSpawner.remove = False -- GitLab