mim icon indicating copy to clipboard operation
mim copied to clipboard

Password for Jupyter log-in

Open Kannan665 opened this issue 2 years ago • 2 comments

I pulled the docker image of mmdetection:latest and passed the cli as shown below to run the container. It leads to a Jupyter Notebook instance, but unable to log-in due to password credential. How do I log-in?

~ via  v14.19.2 via 🐍 v2.7.17 ❯ docker --version Docker version 20.10.15, build fd82621

~ via  v14.19.2 via 🐍 v2.7.17 ❯ docker images REPOSITORY TAG IMAGE ID CREATED SIZE mmdetection latest 3ee366cdfedc 15 hours ago 3.19GB docker_nvidia_tf1 latest d7d445d17804 2 days ago 15.8GB docker_tf2_opencv_od latest b97693ec92c7 5 days ago 5.57GB rama_vicky/openvino latest 0a2f7d183cd1 10 days ago 5.49GB ubuntu bionic c6ad7e71ba7d 12 days ago 63.2MB rama_vicky/od latest 6d460175bd0a 13 days ago 20.6GB nvcr.io/nvidia/tensorflow 22.03-tf1-py3 14a3757c83fc 6 weeks ago 14.9GB datamachines/tensorflow_opencv 2.8.0_4.5.5-20220318 2c763733665c 7 weeks ago 4.52GB datamachines/cudnn_tensorflow_opencv 11.4.2_2.7.0_3.4.16-20220103 5a9e58a5fb76 4 months ago 17.8GB openvino/ubuntu18_dev 2021.4.2_src 6baa7ea0da8d 6 months ago 6.35GB openvino/ubuntu18_dev 2020.3 9c5ca9c923f3 23 months ago 5.19GB

~ via  v14.19.2 via 🐍 v2.7.17 ❯ docker run -it
∙ --gpus all
∙ --shm-size=8g
∙ -v /dev:/dev
∙ -v /tmp/.X11-unix:/tmp/.X11-unix
∙ -v /home/kannan/mmdetection/:/var/lib/mmdetection/
∙ -e DISPLAY=$DISPLAY
∙ --network=host
∙ mmdetection:latest [I 03:23:54.000 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret [I 03:23:54.132 NotebookApp] Serving notebooks from local directory: /tensorflow/models/research/object_detection [I 03:23:54.132 NotebookApp] Jupyter Notebook 6.4.10 is running at: [I 03:23:54.132 NotebookApp] http://Kannan:8888/ [I 03:23:54.132 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [I 03:24:02.620 NotebookApp] 302 GET / (127.0.0.1 Screenshot from 2022-05-12 08-54-38 ) 0.420000ms [I 03:24:02.626 NotebookApp] 302 GET /tree? (127.0.0.1) 0.690000ms [W 03:24:08.658 NotebookApp] 401 POST /login?next=%2Ftree%3F (127.0.0.1) 1.050000ms referer=http://kannan:8888/login?next=%2Ftree%3F Screenshot from 2022-05-12 08-54-38

Kannan665 avatar May 12 '22 03:05 Kannan665

It seems like this issue should be created in mmdetection.

zhouzaida avatar Jun 27 '22 15:06 zhouzaida

As far as I know open-mmlabs doesn't provide any official Docker images?

You can copy the content of the file /root/.local/share/jupyter/runtime/notebook_cookie_secret from the running container which should contains the token. Then you can paste the token as parameter in the URL to access the notebook:

http://kannan:8888/login?next=%2Ftree%3F&token=PASTE_THE_TOKEN_HERE

We can close this issue I guess.

nok avatar Jul 02 '23 23:07 nok