Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Cannot create ubuntu-1404-trusty-v20161130 machine on Google Cloud #3904

Closed
huseyinbabal opened this issue Dec 3, 2016 · 4 comments
Closed

Comments

@huseyinbabal
Copy link

Hi,
I am trying to create machine on Google Cloud by using following command:

docker-machine create --driver google --google-machine-image ubuntu-1404-trusty-v20161130 --google-project <project> --google-disk-size 30 --google-machine-type n1-standard-2 google-machine

And got following error;

Error creating machine: Error in driver during machine creation: googleapi: Error 400: Invalid value for field 'resource.disks[0].initializeParams.sourceImage': 'ubuntu-1404-trusty-v20161130'. The URL is malformed., invalid
Opting out of crash reporting

I can see the image in google cloud image list by using following command:

gcloud compute images list

Thanks in advance

@huseyinbabal
Copy link
Author

Sorry, I need to give absolute url https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/family/ubuntu-1404-lts instead of ubuntu-1404-trusty-v20161130 .

@dminkovsky
Copy link

Wow thanks for posting your follow-up comment. I couldn't find the URL prefix anywhere. How on earth did you Google this?

@jjhbw
Copy link

jjhbw commented Feb 9, 2018

I encountered this as well. For the record, run
gcloud compute images list --uri
to get the absolute URIs of the available images.

@oussemos
Copy link

It works for me with just ubuntu-os-cloud/global/images/ubuntu-1404-trusty-v20161130
No need to add all the URL

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants