we have a jupyterhub server running on an
ubuntu headless server 18.0.4. LTS. We are using the docker-spawner of the type systemuser-spawner, in order to map in the user’s home dirs into the spawned container. Everything works fine so far.
Now we want to enable “named servers” in jupyterhub, so that every user can have more than one jupyter notebook spawned at the same time.
For this I added the line
c.JupyterHub.allow_named_servers = True
jupyterhub_config.py. After restaring the jupyterhub server this should be working, but isn’t-
I can see all the new mechanics of the activated feature “named servers”, and I can also add new servers to the list. Then I can spawn the first container, this works. As soon as I spawn the second container within another created server, it results in an error:
Error: 409 Client Error: Conflict (“Conflict. The container name “/jupyter-rschauf” is already in use by container “ab4c3a0d8f00”. You have to remove (or rename) that container to be able to reuse that name.”)
When I check in the shell of the server to see the info about the first container spawned, with
docker ps after starting the first container I get:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ab4c3a0d8f00 hhn/0-gpu-tfnb:latest "tini -g -- start-no…" 14 seconds ago Up 10 seconds 127.0.0.1:32769->8888/tcp jupyter-rschauf
After this error, also the first container is gone again.
You can see the name “jupyter-rschauf” which has been assigned to the container. The error message above shows, that when spawning the second container, it again tries to assign the same name, which already has been assignet to the first container. This is done by the singleuser-spawner.
Does this mean, multiple servers per user does not work with singleuser-spawner?
Or do I miss some configuration yet?
thanks and regards,