Setting up Docker and TensorFlow for Windows 10 Professional

Installing Docker

  • Download the Docker installer here.
  • Run ‘InstallDocker.msi’
  • Launch Docker when the installer finishes
  • If Docker warns you about Hyper-V not being enabled, allow Docker to enable Hyper-V and automatically restart your machine
  • Open PowerShell or ‘cmd.exe’ and run the Docker hello-world image to ensure Docker is working properly

Installing TensorFlow

  • Open PowerShell
  • Pull the tensorflow docker image:
  • Test running the Docker TensorFlow image:
  • Copy the URL with your login Jupyter login token from PowerShell and go to it in your web browser

If you were able to access the page, Docker and TensorFlow have been installed correctly.

Getting the TensorFlow Tutorials

Note: For this tutorial, we are cloning the TensorFlow-Tutorials repo to the root of our C: drive, you can put it anywhere you like, but the rest of the tutorial will assume it is located at:

  • Clone the github repo https://github.com/lexfridman/deepcars
  • Enable sharing of the drive you cloned the deepcars repo to in Docker
    • Right Click on the Docker System Try icon.
    • Click ‘Settings’
    • Go to ‘Shared Drives’ and check the box for the drive deepcars is located on.
    • Click ‘Apply’
  • Open PowerShell
  • Run the TensorFlow docker image and mount the notebooks.
  • In your browser, navigate to URL provided by Docker inside of PowerShell
  • Ensure that the notebooks for the tutorials are available (you should see ‘1_python_perceptron.ipynb’ as the first notebook).

Congratulations!  If you were able to access the deepcars Notebooks from within your browser, everything should be working!

Note: We recommend adding the command to run the Docker image and mount the notebooks to a script for easy execution. Simply open notepad and paste in the line

Save the script as ‘start-tensorflow.PS1’ and right click on the file and click ‘Run with PowerShell’ to start the TensorFlow Docker image.