Is docker running on the machine? That suggests that perhaps the default
`/var/run/docker.sock` doesn't exist.

On Tue, Dec 5, 2017 at 8:49 PM, Z <[email protected]> wrote:

> 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?
>
> --
> 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/c1081a78-acb2-48f9-9d2b-f0c6d14e0de6%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/c1081a78-acb2-48f9-9d2b-f0c6d14e0de6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAHNn8BU6nBbDU-MhXFpTC%2BVW_pxV1cPeS%2BxR45xfHmc50xpBEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to