Skip to content

Commit d9f6cf1

Browse files
committed
Use default cmd for running jupyter/docker-stacks
1 parent 89a2962 commit d9f6cf1

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

basic-example/docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ services:
3535
DOCKER_NOTEBOOK_IMAGE: jupyter/base-notebook:latest
3636
# Notebook directory inside user image
3737
DOCKER_NOTEBOOK_DIR: /home/jovyan/work
38-
# Using this run command
39-
DOCKER_SPAWN_CMD: start-singleuser.sh
4038

4139
volumes:
4240
jupyterhub-data:

basic-example/jupyterhub_config.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@
1616
# Spawn containers from this image
1717
c.DockerSpawner.image = os.environ["DOCKER_NOTEBOOK_IMAGE"]
1818

19-
# JupyterHub requires a single-user instance of the Notebook server, so we
20-
# default to using the `start-singleuser.sh` script included in the
21-
# jupyter/docker-stacks *-notebook images as the Docker run command when
22-
# spawning containers. Optionally, you can override the Docker run command
23-
# using the DOCKER_SPAWN_CMD environment variable.
24-
spawn_cmd = os.environ.get("DOCKER_SPAWN_CMD", "start-singleuser.sh")
25-
c.DockerSpawner.cmd = spawn_cmd
26-
2719
# Connect containers to this Docker network
2820
network_name = os.environ["DOCKER_NETWORK_NAME"]
2921
c.DockerSpawner.use_internal_ip = True

0 commit comments

Comments
 (0)