>
> hello I am trying to setup jupyterhub with docker.  I can get service 
> started for jupyterhub and nginx (reverse proxy).  When I login thought the 
> jupyter-notebook server fails to start.  The jupyter/datascience-notebook 
> service starts, but fails to create a docker container.  The related 
> service tag shows the error : 
>

ID                          NAME                  IMAGE                     
            NODE                             DESIRED STATE       CURRENT 
STATE             ERROR                                                     
       PORTS
ral7xr7nxhbqjvvh723ljqbkh   jupyter-alvin.1       jupyter/datascience-
notebook:latest   js-171-143.jetstream-cloud.org   Ready               
Rejected 3 seconds ago    "invalid mount target, must be an absolute path: 
SwarmSpawner" 


Where in the jupyterhub_config.py file would a set an "absolute path" for 
the mount target?  would this be the NOTEBOOK_DIR?   here is the what I 
think the relevant section from my jupyterhub_config.py file:

notebook_dir = os.environ.get('NOTEBOOK_DIR') or '/home/jovyan/work'
c.SwarmSpawner.notebook_dir = notebook_dir


mounts = [{'type': 'volume',
           'source': 'jupyterhub-user-{username}',
           'target': notebook_dir,
           'no_copy' : True,
           'driver_config' : {
              'name' : 'local',
              'options' : {
             'type' : 'nfs4',
             'o' : 'addr=jupterhubserver,rw',
             'device' : ':/var/nfs/{username}/'
           }
        },
}]

If it is NOTEBOOK_DIR . what should I set that to?  Currently I am mounting 
a docker volume to /var/nfs with in the jupyterhub container.
any help would be greatly appreciated.

cheers,




-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/4976663b-7a3b-46b8-af0c-c5b3706e3887%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to