+-
无法在谷歌云平台上用gpu和docker打开jupyter
我想使用以下命令打开jupyter:

docker run --runtime=nvidia --name tensorflow1 -it -p 8888:8888 -p 6006:6006 tensorflow/tensorflow:latest-gpu-py3-jupyter

我无法用浏览器打开它.系统看起来不错,因为它说:

To access the notebook, open this file in a browser:
    file:///root/.local/share/jupyter/runtime/nbserver-8-open.html
Or copy and paste one of these URLs:
    http://(568ebbf84a86 or 127.0.0.1):8888/?token=17fc57d57c89f56c460748f464b488c59f8ddccf5793e7

但是当我用外部IP地址打开它时,我无法连接,系统说:

[W 06:15:52.336 NotebookApp] 404 GET http://110.249.212.46/testget?q=23333&port=8888 (110.249.212.46) 38.11ms referer=None

我已经构建了外部IP地址并构建了防火墙.

如果我使用以下命令没有问题:

docker run --runtime=nvidia -it --rm tensorflow/tensorflow:latest-gpu 

以下测试已粘贴:

python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"

如何解决这个问题呢?

最佳答案
经过一个月的调试,终于,终于,终于,终于,终于,终于,终于,终于,终于,终于,终于,终于
我喜欢这个答案:

谷歌云平台只打开一个端口进行码头部署,即8080

所以如果你想打开docker jupyter notebook,你应该使用以下方法:

docker run  --runtime=nvidia --name tensorflow1 -it  -p 8080:8888 tensorflow/tensorflow:latest-gpu-py3-jupyter

注意8080:8888

点击查看更多相关文章

转载注明原文:无法在谷歌云平台上用gpu和docker打开jupyter - 乐贴网