Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

gcloud runs very slow on WSL

I have an unusual question. I have noticed the gcloud CLI runs very slow on WSL - Windows Subsystem for Linux. Has anyone else also experienced this and knows if there is a fix?

Solved Solved
1 2 933
1 ACCEPTED SOLUTION

I found the issue here. I was running the gcloud installed under Windows, specifically 

 

/mnt/c/Program Files (x86)/Google/Cloud SDK/google-cloud-sdk/bin/gcloud

 

Installing a separate copy of gcloud CLI on WSL using the steps here fixed the problem. Now gcloud is installed under /usr/bin on WSL

View solution in original post

2 REPLIES 2

Hello @morpheus  ,Welcome on Google Cloud Community.

Maybe it's related with WSL distro itself ? Did you've tried to spin up test WSL distro with different Linux version and check whether this issue still exist? If yes, it would be good to create issue on issuetracker.

--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost Sessionize Youtube

I found the issue here. I was running the gcloud installed under Windows, specifically 

 

/mnt/c/Program Files (x86)/Google/Cloud SDK/google-cloud-sdk/bin/gcloud

 

Installing a separate copy of gcloud CLI on WSL using the steps here fixed the problem. Now gcloud is installed under /usr/bin on WSL