Setting Up Docker and TensorFlow for Mac OS X

Installing Docker

  • Download the Docker installer here.
  • Mount ‘Docker.dmg’
  • Copy to your Application directory
  • Double click and wait for Docker to finish starting up
  • Open terminal and run the docker hello-world image

Installing TensorFlow

  • Open a terminal
  • Pull the tensorflow/docker image:
  • Test running the Docker TensorFlow image:
  • Copy the URL with your login Jupyter login token from the terminal 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 deepcars repo to our home directory, you can put it anywhere you like, but the rest of the tutorial will assume it is located at:

  • Clone the github repo
  • Enable sharing of the drive you cloned the deepcars repo to in Docker
    • Right Click on the Docker icon on the top of your screen.
    • Click ‘Settings’
    • Go to ‘File Sharing’ and add your home direcory to the list of shared directories.
    • Click ‘Apply and Restart’
  • Open terminal
  • Run the TensorFlow docker image and mount the notebooks.
  • In your browser, navigate to URL provided by Docker inside of the terminal
  • 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 a your favorite text editor and paste in the lines

Save the script as ‘’ and run

Then run the script