I have a jupyter notebook running in docker container. I would like to port forward it to my local desktop browser. For that I do the below steps
1) Publish the container port to the remote host port 2) Port forward the remote host port to the localhost (desktop)
Though I tried doing this, I get an error message that "Page cannot be displayed". Can you please let me know if I am making any error with the docker commands
Publish ports (container to remote host)
docker run --runtime=nvidia -it --rm -v
/home/selva/aiaa_demo:/mnt/aiaa_spleen -p 8787:8888 $DOCKER_IMAGE jupyter
notebook /opt/nvidia/medical/annotation/examples/MSD_Task09_Spleen --ip
0.0.0.0 --allow-root --no-browser
Port forwarding in ubuntu bash screen
ssh -L 8343:127.0.0.1:8787 onegpu
The execution of above two commands doesn't help me in opening the browser in local desktop
However, when I use --network-host , it works
docker run --runtime=nvidia --network=host -it --rm -v
/home/selva/demo:/mnt/disease -p 8787:8888 $DOCKER_IMAGE jupyter
notebook /opt/nvidia/med/ann/examples/MSD --ip
0.0.0.0 --allow-root --no-browser
Can you please tell me what is the mistake with my docker command or what can be the reason as to why it isn't opening?
I am expecting to be able to open the jupyter notebook locally in my desktop without --network=host option and your help in fixing my docker command / port related issue