Launch TensorFlow on Docker in Google Cloud

I followed the instructions for installing TensorFlow on Docker on Google Cloud here:

http://tensorflow.org/get_started/os_setup.html#docker-based-installation

The first time he worked and showed the tensorflow prompt. Now that I am out and back, I get the following:

technologiclee@docker-playground :~$ docker run -it b.gcr.io/tensorflow/tensorflow root@2e87064f0743 :/#

I also tried this:

root@2e87064f0743 :/# docker run b.gcr.io/tensorflow/tensorflow-full bash: docker: command not found

Is there any other way to run TensorFlow on Docker after installing it?

+3
source share
1 answer

The docker run -it invokes the bash shell in the container where TensorFlow is installed. Once you are at the root@2e87064f0743 :/# prompt, you can start the TensorFlow interactive session by running ipython , as shown in the following example:

 $ 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 
+5
source

Source: https://habr.com/ru/post/1239656/


All Articles