Skip to content

Commit

Permalink
Merge pull request #562 from classmarkets/machine-gce-image-family
Browse files Browse the repository at this point in the history
machine/gce: explain how to use image families
  • Loading branch information
johndmulhausen authored Nov 15, 2016
2 parents 53d8efd + 5bde9b0 commit 6ec5958
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion machine/drivers/gce.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,21 @@ list of image URLs run:

gcloud compute images list --uri

Google Compute Engine supports [image families](https://cloud.google.com/compute/docs/images#image_families).
An image family is like an image alias that always points to the latest image in the family. To create an
instance from an image family, set `--google-machine-image` to the family's URL.

The following command will show images and which family they belong to (if any):

gcloud compute images list

To obtain a family URL, replace `<PROJECT>` and `<FAMILY>` in the following template.

https://www.googleapis.com/compute/v1/projects/<PROJECT>/global/images/family/<FAMILY>

For example, to create an instance from the latest Ubuntu 16 LTS image, specify
`https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/family/ubuntu-1604-lts`.

#### Environment variables and default values

| CLI option | Environment variable | Default |
Expand All @@ -68,4 +83,4 @@ list of image URLs run:
| `--google-preemptible` | `GOOGLE_PREEMPTIBLE` | - |
| `--google-tags` | `GOOGLE_TAGS` | - |
| `--google-use-internal-ip` | `GOOGLE_USE_INTERNAL_IP` | - |
| `--google-use-existing` | `GOOGLE_USE_EXISTING` | - |
| `--google-use-existing` | `GOOGLE_USE_EXISTING` | - |

0 comments on commit 6ec5958

Please sign in to comment.