Reputation: 1
Google recommends using:
gcloud compute instances describe --project NAME --zone ZONE INSTANCE | grep googleusercontent.com | grep datalab
But when I run this, nothing shows up. I can access the JupyterLab through normal SSH tunnelling however. How should I fix this problem?
Upvotes: 0
Views: 321
Reputation: 3789
This issue is because of the last grep
. Your command should be like this:
gcloud compute instances describe --project NAME --zone ZONE INSTANCE | grep googleusercontent.com
Good luck!
Upvotes: 2
Reputation: 40296
The current datalab documentation appears to not ask this:
https://cloud.google.com/datalab/docs/quickstart
datalab create ${INSTANCE} --project=${PROJECT} --zone=${ZONE}
datalab connect ${INSTANCE} --project=${PROJECT} --zone=${ZONE}
As I suspect you're doing, you may also:
gcloud compute ssh ${INSTANCE} \
--project=${PROJECT} \
--zone=${ZONE} \
--ssh-flag="-L 8081:localhost:8080"
same-same.
Please reference the documentation that you're using in your question so that we may better help.
Upvotes: 1