Search This Blog

Sunday, December 1, 2019

how to connect to gcp vm and deploy docker from your gcr



open putty gen get the username from the name column and get public and private keys(ppk)
copy paste public key data generated on the putty gen screen to the ssh secion on gcp vm.

now use the username and add ppk to the auth of the putty session, boom you are in...

make sure your vm service account is added as a storage admin else you wont be
able to pull docker images from vm shell.

use below command

gcloud projects add-iam-policy-binding projectname \
    --member=serviceAccount:92xxxxx9-compute@developer.gserviceaccount.com\
    --role=roles/storage.admin

yeah try to pull docker in your newly baked vm ,, you are in business ...

No comments:

Post a Comment