在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