question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dockerspawner 0.9.1 does not appear to be compatible with docker==3.x

See original GitHub issue

The requirements file leaves it up to pip to as to which docker package should be installed, if you issue a pip install --upgrade you will get docker 3 as part of that which results in the following:

Feb 14 14:11:00 pynote jupyterhub: [E 2018-02-14 14:11:00.622 JupyterHub user:436] Failed to cleanup gmcgrath's server that failed to start
Feb 14 14:11:00 pynote jupyterhub:     Traceback (most recent call last):
Feb 14 14:11:00 pynote jupyterhub:       File "/opt/rh/rh-python35/root/usr/lib/python3.5/site-packages/jupyterhub/user.py", line 432, in spawn
Feb 14 14:11:00 pynote jupyterhub:         yield self.stop()
Feb 14 14:11:00 pynote jupyterhub:       File "/opt/rh/rh-python35/root/usr/lib/python3.5/site-packages/jupyterhub/user.py", line 501, in stop
Feb 14 14:11:00 pynote jupyterhub:         status = yield spawner.poll()
Feb 14 14:11:00 pynote jupyterhub:       File "/opt/rh/rh-python35/root/usr/lib/python3.5/site-packages/dockerspawner/dockerspawner.py", line 421, in poll
Feb 14 14:11:00 pynote jupyterhub:         container = yield self.get_container()
Feb 14 14:11:00 pynote jupyterhub:       File "/opt/rh/rh-python35/root/usr/lib/python3.5/site-packages/dockerspawner/dockerspawner.py", line 447, in get_container
Feb 14 14:11:00 pynote jupyterhub:         'inspect_container', self.container_name
Feb 14 14:11:00 pynote jupyterhub:       File "/opt/rh/rh-python35/root/usr/lib64/python3.5/concurrent/futures/_base.py", line 398, in result
Feb 14 14:11:00 pynote jupyterhub:         return self.__get_result()
Feb 14 14:11:00 pynote jupyterhub:       File "/opt/rh/rh-python35/root/usr/lib64/python3.5/concurrent/futures/_base.py", line 357, in __get_result
Feb 14 14:11:00 pynote jupyterhub:         raise self._exception
Feb 14 14:11:00 pynote jupyterhub:       File "/opt/rh/rh-python35/root/usr/lib64/python3.5/concurrent/futures/thread.py", line 55, in run
Feb 14 14:11:00 pynote jupyterhub:         result = self.fn(*self.args, **self.kwargs)
Feb 14 14:11:00 pynote jupyterhub:       File "/opt/rh/rh-python35/root/usr/lib/python3.5/site-packages/dockerspawner/dockerspawner.py", line 408, in _docker
Feb 14 14:11:00 pynote jupyterhub:         m = getattr(self.client, method)
Feb 14 14:11:00 pynote jupyterhub:       File "/opt/rh/rh-python35/root/usr/lib/python3.5/site-packages/dockerspawner/dockerspawner.py", line 62, in client
Feb 14 14:11:00 pynote jupyterhub:         client = docker.APIClient(**kwargs)
Feb 14 14:11:00 pynote jupyterhub:       File "/opt/rh/rh-python35/root/usr/lib/python3.5/site-packages/docker/api/client.py", line 110, in __init__
Feb 14 14:11:00 pynote jupyterhub:         config_dict=self._general_configs
Feb 14 14:11:00 pynote jupyterhub:     TypeError: load_config() got an unexpected keyword argument 'config_dict'

Rolling docker back to 2.7.0 resolved the issue, I have not tested 3.x with dockerspawner 0.8.1 but 2.7 works well with that as well.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
willingccommented, Apr 10, 2018

It looks as if this was due to an upstream docker issue that has been resolved. You may need to uninstall and reinstall docker as mentioned in this issue https://github.com/docker/docker-py/issues/1968#issuecomment-376339745

0reactions
minrkcommented, Apr 11, 2018

Thanks, @willingc!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changes in DockerSpawner
In particular, the biggest backward-incompatible change to highlight is the container (and volume) name escaping scheme now produces DNS-safe results, ...
Read more >
Spawn failed for user after jupyterhub restart, received signal ...
1.1 is a long time ago (current is 2.2.2, but you can use 1.5.x). ... or directory: 'alembic': 'alembic'. not sure if it...
Read more >
jupyterhub/jupyterhub - Gitter
I've been trying to use docker stack deploy to launch jupyterhub and am ... socket hangup is not generally a problem on its...
Read more >
Adding additional host to Juypterhub DockerSpawner
You can do the equivalent of docker run --add-host "foo.domain.local:192.168.1.12" ... like so: c.DockerSpawner.extra_host_config.update({ ...
Read more >
Deploying a containerized JupyterHub server with Docker
The goal of this tutorial is to present a complete solution to deploy a JupyterHub server with delegated authentication and containerized ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found