How to install google Tensorflow in your windows machine using docker Image

I am going to write about how to install the recent google tensorflow in your windows Machine. Right now the current distribution does not have any direct installation process for windows. But Tensorflow can be hosted using its docker image that has been cited in the main site.

The instructions here are compact versions of the instructions after I Installed following  this blog from Caffinc

The steps are as followed:

  1. Download Docker toolbox from here
  2. Install Docker as described here. If you have virtual box installed previously  uncheck the Virtual box installation. Also stop VirtualBox before starting installation.
  3. After you finish installation, start Docker Quick Start Terminal. The icon should be on your desktop. It will take a bit of time to settle. You will find the name of your machine and $ sign when its ready for work.

At this point you are done with installing Docker Tool Box.

Now follow the steps to pull Tensorflow Image on Docker. Google has released two versions for Docker. One is light weight and Another is Full version. The process is same only the docker  location is different.

Follow the following steps:

  1. In your Docker Terminal, write

docker pull   b.gcr.io/tensorflow/tensorflow           //for light weight tensorflow

docker  pull  b.gcr.io/tensorflow/tensorflow-full      //for full version

  • Then check the docker image repository  by the command:

docker images

  • In  your image repository you will find tensorflow and IMAGEID
  • And now issue the command :

winpty docker run -it       Tensorflow_Image_Id_you_Have_Noted_Down

That’s it.  You will be taken to the root prompt and now you can call python from here and start working with tensorflow commands.

Have a nice day!!