-
Notifications
You must be signed in to change notification settings - Fork 11
sudo needed to execute docker #9
Description
I've noticed that container os needs sudo for using docker. Thus, the login command could be eventually modified into this maybe?
ssh -t $(gcloud compute os-login describe-profile | grep username | sed 's/username: //' | tr -d '\n')@$PROXY_IP sudo docker run --rm --network=host -it logiqx/mysql-client mysql -u root -p -h 127.0.0.1
additionally, maybe i'm wrong but...since both the proxy bastion host and the cloud sql instances lies in the same VPC, why you need to use cloud sql proxy to reach it?
Is it not supposed to be directly reachable using the private ip only?
and finally, I was wondering if having the (hi priviledged) credentials json stored in clear in the description of the VM could be a security issue....
said that, your setup is absolutely GREAT and I'm working to deploy it on my tenant atm ;)