I am trying to run the below docker command. This command is supposed to produce an output as shown below in screenshot but it throws an error as "Unknown flag - ip". Once this error is resolved, I would also like to port forward it to view the browser in my local environment as we don't any UI for remote server. However, I am encountering problem in getting this done successfully. Please note my docker version is 18.09.4, build d14af54
There are certain jupyter notebook examples that are stored in the below folder
/opt/nvidia/data/image/examples/brats
I would like to be able to view this jupyter notebook examples in my local environment. So, based on my understanding I felt that I had to do two steps
step 1) Execute the docker run command as shown below in code section
step 2) Port forward to local environment
However, I am getting an error after execution of step 1.
Actual output (error) of step 1
Expected output (success) of step 1
If step one had been successful, this below shown screenshot content should have been the actual output which will provide me details to port forward and login to the jupyter notebook
Once, I am able to execute the step 1 successfully, I should be able to port forward
Step 1 - Code
docker run --runtime=nvidia -it --rm -v /home/selva/demo:/mnt/demo -p
8888:8888 -w /opt/nvidia/data/image/examples/brats $DOCKER_IMAGE
jupyter notebook --ip 0.0.0.0 --allow-root --no-browser
Step 2 - Code
ssh -L 8234:127.0.0.1:8888 localhost
As our docker is running in a remote gpu, we don't have UI to view it. In order to access it locally in my desktop(http://localhost:8234), I do port forwarding.
Currently, neither am able to access the Jupyter notebook using 127.0.0.1:8888 or 127.0.0.1:8234. In both the scenarios, it fails
I would like to be able to fix the issue of step 1 and be able to execute step 2 (port forward) and see the Jupyter notebook in my local browser. Can you please help?