I have installed the GCP SDK on a virtualbox vm and trying to test the commands. I get the following error:
Enter the output of the above command: ERROR: gcloud crashed (EOFError): EOF when reading a line
when I run the command:
sudo docker run -ti --name gcloud-config gcr.io/google.com/cloudsdktool/google-cloud-cli gcloud auth login --no-browser
but these commands work:
sudo docker run -ti --name gcloud-config gcr.io/google.com/cloudsdktool/google-cloud-cli gcloud version
sudo docker run -ti --name gcloud-config gcr.io/google.com/cloudsdktool/google-cloud-cli gcloud info --run-diagnostics
How can I fix this?
--no-browser
If you want to authorize the gcloud CLI on a machine that doesn't have a browser and you can install the gcloud CLI on another machine with a browser, use the --no-browser flag.
https://cloud.google.com/sdk/gcloud/reference/auth/login
Try this: gcloud auth login --no-browser
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With