我可以在没有Kubernetes的情况下使用容器构建网站吗?

时间:2019-06-14 00:12:14

标签: tensorflow google-cloud-platform

我想将TensorFlow与GPU(https://www.tensorflow.org/install/docker)配合使用,所以我在Google云平台上尝试了以下代码:

docker run --runtime=nvidia --name tensorflow1 -it -p 8888:8888 tensorflow/tensorflow:latest-gpu-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=17fc57d57c89f56c460748f464b488c59f8ddccf5793e

但是当我使用外部IP地址打开它时,我无法连接

我已经建立了外部IP地址并建立了防火墙。

首先,我认为docker没问题,因为如果我使用以下命令:

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])))"

第二,我认为IP地址和防火墙没有问题,因为我成功地使用(https://cloud.google.com/community/tutorials/setting-up-lamp)测试了Apache和PHP

Google云平台是否需要Kubernetes来运行docker网站?

0 个答案:

没有答案
相关问题