简体   繁体   English

如何从服务器上的Docker访问Jupyter Notebook?

[英]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.

相关问题 如何从Azure中的Blob存储将数据上传到Jupyter Notebook? - How to upload data to Jupyter Notebook from blob storage in Azure? 在天蓝色的笔记本中的Jupyter服务器扩展url模式 - Jupyter server extension url pattern in azure notebook 无法连接到Azure HDInsight中的Jupyter Notebook服务器 - Cannot connect to Jupyter Notebook server in Azure HDInsight #Azure 本地 jupyter notebook 服务器中的租户问题 - #Azure tenant problem in local jupyter notebook server Kubernetes Jupyter 服务器,带有示例笔记本和持久存储 - Kubernetes Jupyter Server with Example Notebook and Persistent Storage 如何将数据集上传到 Azure Jupyter Notebook - How to upload a Data Set to Azure Jupyter Notebook 如何在 Azure Jupyter Notebook 中指定返回路径 - How to specify a return path in Azure Jupyter Notebook 如何使用 SSL 从我的 Azure 数据科学虚拟机保护我的 Jupyter 笔记本? - How do I secure my Jupyter notebook with SSL from my Azure Data Science Virtual Machine? 访问在远程 Windows VM 上运行的 Jupyter 笔记本/实验室? - Access Jupyter notebook/lab running on a remote windows VM? 如何在 Jupyter 笔记本内部的 conda 环境中使用特定的 Java 版本 - How to use specific Java version from a conda environment inside of Jupyter notebook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM