- 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
1docker run hello-world
- Open PowerShell
- Pull the tensorflow docker image:
1docker pull tensorflow/tensorflow
- Test running the Docker TensorFlow image:
1docker run -it -p 8888:8888 tensorflow/tensorflow
- 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.
1docker run -it -p 8888:8888 -p 6006:6006 -v //c/deepcars-master:/notebooks tensorflow/tensorflow
- 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
docker run -it -p 8888:8888 -p 6006:6006 -v //c/deepcars-master:/notebooks tensorflow/tensorflow
Save the script as ‘start-tensorflow.PS1’ and right click on the file and click ‘Run with PowerShell’ to start the TensorFlow Docker image.