Skip to content

Commit e1f07fd

Browse files
committed
J-hub config update (remove unused flag that causes crash on singleuser container startup.)
1 parent c53a6c9 commit e1f07fd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

config/jupyterhub_config.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class LocalNativeAuthenticator(NativeAuthenticator, LocalAuthenticator):
6565
os.environ["http_proxy"] = ""
6666
os.environ["https_proxy"] = ""
6767

68-
c: Config = get_config()
68+
c: Config = get_config() #noqa
6969

7070
# Spawn containers from this image
7171
# Either use the CoGstack one from the repo which is huge and contains all the stuff needed or,
@@ -81,8 +81,6 @@ class LocalNativeAuthenticator(NativeAuthenticator, LocalAuthenticator):
8181
# # notebook directory in the container
8282
c.DockerSpawner.volumes = {"jupyterhub-user-{username}": NOTEBOOK_DIR, "jupyter-hub-shared-scratch": SHARED_CONTENT_DIR}
8383

84-
# volume_driver is no longer a keyword argument to create_container()
85-
8684
# Remove containers once they are stopped
8785
c.DockerSpawner.remove = False
8886

@@ -211,8 +209,6 @@ def per_user_limit(role):
211209
c.DockerSpawner.extra_create_kwargs = {"user": "root"}
212210
c.DockerSpawner.cmd = [SPAWN_CMD] if isinstance(SPAWN_CMD, str) else SPAWN_CMD
213211

214-
c.DockerSpawner.extra_create_kwargs.update({ "volume_driver": "local"})
215-
216212

217213
c.DockerSpawner.notebook_dir = NOTEBOOK_DIR
218214

0 commit comments

Comments
 (0)