Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: gcloud crashed (EOFError): EOF when reading a line

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?

like image 724
George Udosen Avatar asked Jun 01 '26 20:06

George Udosen


1 Answers

--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

like image 59
Slava Kuravsky Avatar answered Jun 04 '26 11:06

Slava Kuravsky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!