This might be due to Notebook being binded to localhost inside the
docker....

Try adding the following parameters to your start command :

—NotebookApp.ip=0.0.0.0
—NoteboopApp.port=8888

Hope this helps...

On Tue, Aug 28, 2018 at 03:28 John McLean <[email protected]> wrote:

> Hi,
>
> I was following this tutorial (
> https://miykael.github.io/nipype_tutorial/notebooks/introduction_docker.html)
> to try and run jupyter notebooks from within a docker container. My docker
> installation and image pull were successful. I can also run the container
> image to start with bash or ipython. However, on starting the container
> with jupyter notebook, I can't get past the token/password screen on my
> browser.
>
> Here is the output from powershell on my host PC (running windows 10 64
> bit). My version of docker is 18.06 as so is up to date as of today 28/8/18.
>
> Running the command:
>
> docker run -it --rm -p 8888:8888 miykael/nipype_tutorial jupyter notebook
>
> The output is as follows:
>
>
> [I 10:25:05.104 NotebookApp] [nb_conda_kernels] enabled, 2 kernels found
> [I 10:25:05.111 NotebookApp] Writing notebook server cookie secret to
> /home/neuro/.local/share/jupyter/runtime/notebook_cookie_secret
> [I 10:25:05.297 NotebookApp] [jupyter_nbextensions_configurator] enabled
> 0.4.0
> [I 10:25:05.324 NotebookApp] JupyterLab extension loaded from
> /opt/miniconda-latest/envs/neuro/lib/python3.6/site-packages/jupyterlab
> [I 10:25:05.324 NotebookApp] JupyterLab application directory is
> /opt/miniconda-latest/envs/neuro/share/jupyter/lab
> [I 10:25:05.495 NotebookApp] [nb_conda] enabled
> [I 10:25:05.495 NotebookApp] Serving notebooks from local directory:
> /home/neuro/nipype_tutorial
> [I 10:25:05.496 NotebookApp] The Jupyter Notebook is running at:
> [I 10:25:05.496 NotebookApp] http://(2bb4cef2b045 or
> 127.0.0.1):8888/?token=a0d6863f5b451c7f763d4d4e20bc7e7c3bd4cd2d3b36e24f
> [I 10:25:05.496 NotebookApp] Use Control-C to stop this server and shut
> down all kernels (twice to skip confirmation).
> [W 10:25:05.497 NotebookApp] No web browser found: could not locate
> runnable browser.
> [C 10:25:05.497 NotebookApp]
>
>     Copy/paste this URL into your browser when you connect for the first
> time,
>     to login with a token:
>         http://(2bb4cef2b045 or
> 127.0.0.1):8888/?token=a0d6863f5b451c7f763d4d4e20bc7e7c3bd4cd2d3b36e24f
>
> On copying the URL to the browser and adjusting to try different options,
> have tried:
>
>
> http://127.0.0.1:8888/?token=a0d6863f5b451c7f763d4d4e20bc7e7c3bd4cd2d3b36e24f
>
> http://localhost:8888/?token=a0d6863f5b451c7f763d4d4e20bc7e7c3bd4cd2d3b36e24f
> http://0.0.0.0:8888/?token=a0d6863f5b451c7f763d4d4e20bc7e7c3bd4cd2d3b36e24f
> http://
> 'mydockerNATip':8888/?token=a0d6863f5b451c7f763d4d4e20bc7e7c3bd4cd2d3b36e24f
>
> All of these either bring up the jupyter token/password page or fail. I
> tried logging into the docker with bash to set a password as per the
> jypyter guide, but this this didn't help.
>
> Does anyone have an idea where I am going wrong? Any help appreciated. I
> also have jupyter installed on the host machine and that has been working
> fine.
>
> Thanks
>
> John
>
> --
> 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/a68e64ca-0966-4efe-8471-54e14ec82570%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/a68e64ca-0966-4efe-8471-54e14ec82570%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from my Mobile device

-- 
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/CAGU5speuQ0uECyycp8YEUJxUR-YKroQkKxaMNiLtr8_kV0SWVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to