[英]How to access jupyter notebook from docker on server?
I am using a azure instance called NC6 that has a GPU on it. 我正在使用一个名为NC6的蔚蓝实例,上面有一个GPU。 I want to use a tensorflow docker image that can use this GPU that also spins up a jupyter notebook.
我想使用一个可以使用此GPU的tensorflow docker映像,该映像也可以启动一个jupyter笔记本。
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. 但是,当我访问:8888时,什么都没有。 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: 尽管我从未使用过Azure实例,但我认为您必须执行以下操作:
Hope this helps! 希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.