Learning How to Use Containers (Docker)

  • if I close the terminal window, the connection stays on (i.e. I can still access my local Datalab site via the browser)
  • it doesn’t stay indefinitely (maybe closes when I shut down?) so I can’t perpetually access that site
  • to reconnect after you’ve installed and setup the workspace (from Google instructions)…
export GCP_PROJECT_ID=YOUR_PROJECT_ID
export CONTAINER_IMAGE_NAME=gcr.io/earthengine-project/datalab-ee:latest
export WORKSPACE=${HOME}/workspace/datalab-ee
cd $WORKSPACE
docker run -it -p "127.0.0.1:8081:8080" -v "$WORKSPACE:/content" -e "PROJECT_ID=$GCP_PROJECT_ID" $CONTAINER_IMAGE_NAME

Leave a Reply

Your email address will not be published. Required fields are marked *