dl-docker
dl-docker copied to clipboard
Restarting Kernel
Hi! Thank you for your great work. I have an issue: After running the docker , as soon as i'm opening a new notebook i'm getting - [I 20:09:17.475 NotebookApp] KernelRestarter: restarting kernel (1/5) [I 20:09:20.483 NotebookApp] KernelRestarter: restarting kernel (2/5) [I 20:09:23.492 NotebookApp] KernelRestarter: restarting kernel (3/5) [W 20:09:24.508 NotebookApp] Timeout waiting for kernel_info reply from 164da2ec-1a99-4c09-9e0e-5f39a9a2ba56 [I 20:09:26.501 NotebookApp] KernelRestarter: restarting kernel (4/5) WARNING:root:kernel 164da2ec-1a99-4c09-9e0e-5f39a9a2ba56 restarted [W 20:09:29.506 NotebookApp] KernelRestarter: restart failed
I'm using the CPU mode. Any idea what went wrong?
Thank you!
Gilad
Here is the root of the issue, as referenced in the Dockerfile for this project https://github.com/ipython/ipython/issues/7062
A workaround is to start the container with
docker run <parameters> tail -f /dev/null
then start jupyter with
docker exec -it <containerid> bash
and then run
nohup jupyter notebook --ip "*" &
once prompted inside the container.
only added
... sh -c 'jupyter notebook --ip=0.0.0.0 --no-browser --notebook-dir=/root/sharedfolder'
have helped to me
detailly
docker run -it -p 8888:8888 -p 6006:6006 dl-docker:cpu sh -c 'jupyter notebook --ip=0.0.0.0 --no-browser'
Thanks a lot:)