add volumes

This commit is contained in:
2024-02-22 14:56:53 +08:00
parent 0bfa4f7b04
commit 50b394ccde

View File

@@ -30,7 +30,14 @@ c.DockerSpawner.notebook_dir = notebook_dir
# Mount the real user's Docker volume on the host to the notebook user's
# notebook directory in the container
c.DockerSpawner.volumes = {"jupyterhub-user-{username}": notebook_dir}
# c.DockerSpawner.volumes = {"jupyterhub-user-{username}": notebook_dir}
# Mount the real user's Docker volume on the host to the notebook user's
# notebook directory in the container
c.DockerSpawner.volumes = {
"jupyterhub-user-{username}": notebook_dir,
"/mnt/mydrive": "/home/jovyan/work/mydrive"
}
# Remove containers once they are stopped
c.DockerSpawner.remove = True