From 7ac7c8204032b613cf227fe6f4c1f73a71b9dc1b Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Mon, 18 Apr 2016 08:54:55 -0700 Subject: [PATCH] More editing --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f9f2322..a97bf3f 100644 --- a/README.md +++ b/README.md @@ -219,11 +219,15 @@ docker logs jupyterhub In this deployment, JupyterHub uses DockerSpawner to spawn single-user Notebook servers. You set the desired Notebook server image in a -`DOCKER_CONTAINER_IMAGE` environment variable. When spawning single-user -notebooks, JupyterHub reads the image name from the`DOCKER_CONTAINER_IMAGE` -environment variable contained in `jupyterhub_config.py` file: +`DOCKER_CONTAINER_IMAGE` environment variable. + +When spawning single-user notebooks, JupyterHub reads the DockerSpawner's +image name from `jupyterhub_config.py` file. This file includes the +DockerSpawner's image name which refers to desired image in the +`DOCKER_CONTAINER_IMAGE` environment variable: ``` +# DockerSpawner setting in jupyterhub_config.py c.DockerSpawner.container_image = os.environ['DOCKER_CONTAINER_IMAGE'] ``` @@ -231,10 +235,12 @@ By default, the`DOCKER_CONTAINER_IMAGE` environment variable is set in the `.env` file. ``` +# Setting in the .env file DOCKER_CONTAINER_IMAGE=jupyter/scipy-notebook:2d878db5cbff ``` -You can either change this value in the `.env` file, or you can override it +To use a different notebook server image, you can either change the desired +container image value in the `.env` file, or you can override it by setting the `DOCKER_CONTAINER_IMAGE` variable to a different Notebook image in the environment where you launch JupyterHub. For example, the following setting would be used to spawn single-user pyspark notebook servers: