docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.96k forks source link

Google Compute #3912

Open guestisp opened 7 years ago

guestisp commented 7 years ago

Can someone explain how to use docker-machine from a GCE node ? Auth should happens automatically, but the provided token (from Google Metadata server) is in read-only thus docker-machine is unable to create new nodes.

Any hint ? I don't have a browser or any interface, so I can't use gcloud for the whole oAuth workflow as it requires a webbrowser.

guestisp commented 7 years ago

Any hint?

guestisp commented 7 years ago

Bump

rokadias commented 7 years ago

This is more of a question for GCE, but you need to use scopes. So something like the following:

gcloud compute instances create foo --boot-disk-size 20GB --image-family ubuntu-1604-lts --image-project ubuntu-os-cloud --machine-type n1-standard-8 --scopes cloud-platform,compute-rw