You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently use this dockerimage as a way to use gcloud-cli in multiple projects/zones simultaneously. It works well. However, when trying to use gcloud compute ssh, i'll have specify which user to use, otherwise it will throw an error saying not to use 'root' to log in. This isn't a big deal, but it's just extra typing that I don't feel like doing.
In response, I added a user(the name of my username on all of our GCP instances), but now I can't use ANY gcloud commands because i'll get an error saying:
ERROR: gcloud crashed (OperationalError): unable to open database file
I'm assuming this is a permission issue, since it runs fine when I use 'sudo su' to run the command.
Is there a specific way I can add root-like permissions to my user?
Alternatively, how do I access gcloud commands as a non-root user?
The text was updated successfully, but these errors were encountered:
Can you paste the exact command you're using and the error you're seeing? It's not very clear which user you're referring to (user on the remote VM or in the container etc.)
Hello,
I currently use this dockerimage as a way to use gcloud-cli in multiple projects/zones simultaneously. It works well. However, when trying to use
gcloud compute ssh
, i'll have specify which user to use, otherwise it will throw an error saying not to use 'root' to log in. This isn't a big deal, but it's just extra typing that I don't feel like doing.In response, I added a user(the name of my username on all of our GCP instances), but now I can't use ANY gcloud commands because i'll get an error saying:
ERROR: gcloud crashed (OperationalError): unable to open database file
I'm assuming this is a permission issue, since it runs fine when I use 'sudo su' to run the command.
Is there a specific way I can add root-like permissions to my user?
Alternatively, how do I access gcloud commands as a non-root user?
The text was updated successfully, but these errors were encountered: