Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Batch - Specify image-family

Is there any way to specify the image family for a job in the `InstancePolicy` alongside `machineType`?

Am I correct in understanding that the only way to specify a custom image is to create an Instance Template?

Would be really helpful to be able to specify the instance family alongside a machineType in a submit call!

Solved Solved
0 4 528
1 ACCEPTED SOLUTION

We had some delay in updating the API reference doc. The bootDisk field is available in v1 now:   https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicy

View solution in original post