I am trying to install jupyter notebook docker container on my Mac laptop. With the following options
docker run -dit --rm -p 8888:8888 gcr.io/tensorflow/tensorflow
The container starts up and I can assess it on http://[cointainer-IP]:8888 as expected.
However it takes me to an authentication screen and asks for a token. How do i get the token, which log should I look for in the docker container
The stdout
of the container will give you a special URL that has a token for you to login with. You can either run in the foreground (without -d
) or just checking the current container logs with docker logs <container_id>
. There, you should see output like the following:
[I 16:57:05.859 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
[W 16:57:05.871 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[I 16:57:05.877 NotebookApp] Serving notebooks from local directory: /notebooks
[I 16:57:05.877 NotebookApp] 0 active kernels
[I 16:57:05.877 NotebookApp] The Jupyter Notebook is running at: http://[all ip addresses on your system]:8888/?token=42685cc246e6571c0f16417327fbf4c398061125c00edea5
[I 16:57:05.877 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 16:57:05.878 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=42685cc246e6571c0f16417327fbf4c398061125c00edea5
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With