简体   繁体   中英

How to access jupyter notebook from docker on server?

I am using a azure instance called NC6 that has a GPU on it. I want to use a tensorflow docker image that can use this GPU that also spins up a jupyter notebook.

I use this command

nvidia-docker run -it -p 8888:8888 gcr.io/tensorflow/tensorflow:latest-gpu

When I run this command from within the instance I get

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
    http://localhost:8888/?token=4c495089418941ad470cfe33b002bd6fad67970f84354e29

But when I access the :8888 there is nothing. How can I expose this port to be able to access the notebook from outside the instance?

Although I never used Azure instances I think you have to do the following things:

Hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM