add volumes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user