Docker Community Forums

Share and learn in the Docker community.

Cant connect chrome (windows) to jupyter notebook in docker

Hi,

I have docker running on WSL2 windows 10, container is up port 5005. I run it with -p 5005:5005 -p 5006:5006 -p 8888:8888.
In docker i have running a python jupyter notebook server with following instructions:

To access the notebook, open this file in a browser:
file:///root/.local/share/jupyter/runtime/nbserver-66-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=afe7deb82439ffdb4bc39920824978be1b8aadb0d56c394e
or http://127.0.0.1:8888/?token=afe7deb82439ffdb4bc39920824978be1b8aadb0d56c394e

I use chrome and cant connect above. Also i try to get the dockers IP and use it still no response, I also install nginx in windows and define repo:

server {
listen 80;
server_name repo2.local;

location / {
proxy_pass http://repo2.local:5006;

}
}

nothing helps.
can someone help me access the notebook URL in dockers? I think nginx setting should work