Closed MAliNaqvi closed 7 years ago
Hi @MAliNaqvi, it's a really strange issue but I resolved it removing command:
c.SwarmSpawner.container_spec = {
# The command to be run inside the service
#'command' : 'start-singleuser.sh', #(string or list)
'Image' : 'jupyter/r-notebook',
'mounts' : mounts
}
and put it inside the image you want to use, like this Dockerfile:
FROM jupyter/scipy-notebook
CMD ["start-singleuser.sh"]
I think is more related to Docker and Jupyter....
Could be related: https://github.com/docker/docker/issues/25644
It makes zero sense that specifying in the Dockerfile and container_spec should do something different, but it could be tty-related.
Hi @minrk, I see you have the same problem with kubespawner.
I am preparing a docker-compose file to test this locally. As you said it makes no sense but that's how it is :\
Btw it happens only with IPykernel, with R works fine.
command
in the container spec actually sets ENTRYPOINT, it doesn't set CMD. args
sets CMD. So the main issue here is one of documentation: use args
instead of command
if you want to override CMD.
When starting a new notebook we get the following error:
The issue goes away if we switch back to using docker spawner.