Docker Community Forums

Share and learn in the Docker community.

Can I use docker-machine to create an instance with a specific service account in Google Compute Engine

(Davidraleigh) #1

I’m using the google compute engine docker-machine driver and I’d like to know if I can create a machine with a specific service account? I don’t see the option available. It seems like the only way for this to work is for me to create the vm instance in Google Cloud Platform first, and then use the already existing VM with the GCE driver.

It would be great if I could use the docker-machine driver to create a machine with a specific service account.

(Davidraleigh) #2

Never mind. I found that if you use the --google-scopes setting you can define a service account or scopes that you want to associate with the vm. The best definitions I’ve found for scopes and service account definition in instance creation is here: