dockerspawner throwing exception

665 views
Skip to first unread message

Z

unread,
Dec 5, 2017, 2:49:28 PM12/5/17
to Project Jupyter
Trying to run dockerspawner with jwtauthentication. Authentication works fine but I get an exception whenever a user tries to start the server. 

   client = docker.APIClient(**kwargs)
      File "/usr/local/lib/python3.4/site-packages/docker/api/client.py", line 149, in __init__
        self._version = self._retrieve_server_version()
      File "/usr/local/lib/python3.4/site-packages/docker/api/client.py", line 176, in _retrieve_server_version
        'Error while fetching server API version: {0}'.format(e)
    docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

config :

c.NotebookApp.open_browser = False

c.NotebookApp.ip='*'

c.NotebookApp.port = 8888

c.NotebookApp.token = u''

c.Authenticator.admin_users = {'jupyter'}

c.LocalAuthenticator.create_system_users = True

c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'

c.JupyterHub.authenticator_class = 'jwtauthenticator_new.jwtauthenticator.JSONWebTokenLocalAuthenticator'


from jupyter_client.localinterfaces import public_ips

c.JupyterHub.hub_ip = public_ips()[0]

c.Spawner.mem_limit = '2G'

c.DockerSpawner.host_ip = "0.0.0.0"

~                                   


Is there anything else that I have to add to get dockerspawner working? 

log.txt

MinRK

unread,
Dec 13, 2017, 8:07:18 AM12/13/17
to Project Jupyter
Is docker running on the machine? That suggests that perhaps the default `/var/run/docker.sock` doesn't exist.

--
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 jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/c1081a78-acb2-48f9-9d2b-f0c6d14e0de6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages