Skip to content

Instantly share code, notes, and snippets.

@pratos
Created May 5, 2017 14:40
Show Gist options
  • Select an option

  • Save pratos/e8fe31c7b58020c41d34823f5643cf1e to your computer and use it in GitHub Desktop.

Select an option

Save pratos/e8fe31c7b58020c41d34823f5643cf1e to your computer and use it in GitHub Desktop.
Google Cloud Platform Commands
  • Command to authenticate glcoud

    • gcloud auth login
  • Command to chose an existing project

    • gcloud project list
    • gcloud config set core/project <project-name>
  • Command to create and choose a new project *

  • Select a Compute Zone

    • The zone we'll be working is: us-east1-c (More about regions here)
    • gcloud config set compute/zone us-east1-c
  • Create a new DataLab instance

    • docker run -it -d -p "127.0.0.1:8081:8080" -v "${HOME}:/Documents" -e "PROJECT_ID=ordrmgmt-linnean-166707" -e "DATALAB_DEBUG=true" gcr.io/cloud-datalab/datalab:local
  • Delete the docker container

    • docker rm -f <container-id>

Question here is whether the above command deletes everything related to Datalab?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment