在Google Cloud上启动Docker上的TensorFlow
我按照指示在Google Cloud上的Docker上安装了TensorFlow:
http://tensorflow.org/get_started/os_setup.html#docker-based-installation
它第一次工作,并显示tensorflow提示。 现在我已经注销并返回,我得到这个:
technologiclee@docker-playground:~$ docker run -it b.gcr.io/tensorflow/tensorflow root@2e87064f0743:/#
我也试过这个:
root@2e87064f0743:/# docker run b.gcr.io/tensorflow/tensorflow-full bash: docker: command not found
在Docker安装之后,有没有其他方法可以启动TensorFlow?
docker run -it
命令在安装了TensorFlow的容器中调出一个bash shell。 一旦您位于root@2e87064f0743:/#
提示符处,您可以通过启动ipython
来启动交互式TensorFlow会话,如以下示例所示:
$ docker run -it b.gcr.io/tensorflow/tensorflow root@2e87064f0743:/# ipython Python 2.7.6 ... In [1]: import tensorflow as tf In [2]: c = tf.constant(5.0) In [3]: sess = tf.InteractiveSession() I tensorflow/core/... In [4]: c.eval() Out[4]: 5.0
- 从定制的dockerfile到kubernetes部署一个apache启动
- Docker Kubernetes集群错误请求在Google Cloud上没有足够的身份validation范围
- 使用Visual Studio Online将Docker图像推送到Google Cloud
- “debconf:延迟软件包configuration,因为apt-utils没有安装”:> google notebooks bash error
- Google代码库教程中的Kubernetes Pod与Docker容器
- HTTP(S)负载均衡Kubernetes / Docker
- Google云项目中的跨源资源共享错误
- CircleCI:configuration在gcp上托pipe的Docker容器的testing
- Google Cloud实例上的独立kubelet持久磁盘安装