NVIDIA / nvidia-docker

Build and run Docker containers leveraging NVIDIA GPUs
Apache License 2.0
17.21k stars 2.03k forks source link

How to change the jupyter lab host in Pytorch:23.07 image #1774

Closed ElinLiu0 closed 11 months ago

ElinLiu0 commented 1 year ago

The template below is mostly useful for bug reports and support questions. Feel free to remove anything which doesn't apply to you and add more information where it makes sense.

Also, before reporting a new issue, please make sure that:


1. Issue or feature description

The jupyter lab url shown from docker logs looks like http://hostname:8888,but what i expecting is look like normal one which we launch from local like http://localhost:8888.Here is the problem.

2. Steps to reproduce the issue

macwilam commented 1 year ago

I have the same problem. I think I tried every possible combination of parameters for both docker run and jupyter notebook. My solution was to add 127.0.0.1 hostname to my hosts and add: NotebookApp.allow_remote_access=True to my notebook config on start. This is however just a patch and not a solution and I have no idea why it is hostname instead of localhost.

ElinLiu0 commented 1 year ago

I have the same problem. I think I tried every possible combination of parameters for both docker run and jupyter notebook. My solution was to add 127.0.0.1 hostname to my hosts and add: NotebookApp.allow_remote_access=True to my notebook config on start. This is however just a patch and not a solution and I have no idea why it is hostname instead of localhost.

That's definitely work😂