How to Run Google Datalab with Docker

Posted on Jul 16, 2018 in Tutorial • 10 min read

How to Run Google Datalab with Docker

  1. Install Docker

    1. create Docker account
    2. download Docker dmg
    3. run Docker from application folder
    4. log in Docker account
  2. Open new terminal window
    For Mac/Linux:
    docker run -it -p "127.0.0.1:8081:8080" -v "${HOME}:/content" gcr.io/cloud-datalab/datalab:local-20170224

    For Windows
    docker run -it -p "127.0.0.1:8081:8080" -v "\path\to\exercise_directory:/content" gcr.io/cloud-datalab/datalab:local-20170224

  3. Load http://localhost:8081/ in your web browser

  4. Navigate around like Jupyter Notebook

Repeat step 2 to start Google Datalab

What is Docker?

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package. Containers are isolated from each other and use their own set of tools and libraries; they can communicate through well-defined channels. All containers use the same kernel and are therefore more lightweight than virtual machines.
Official Site