I am creating jobs to submit to Batch through the python sdk. I am running a docker container on many instances. I would like to increase the boot disk size of each instance that runs the image. Is there a way to do this with instance templates while maintaining docker compatibility? Or is there just some option I can choose to increase the size of the boot disk? Thank you.
Solved! Go to Solution.
gcloud compute instance-templates create my-template --boot-disk-size=100GB
You can then use this template when creating your instances in your Batch job.
Thanks for the responses. @Wen_gcp pointed out to me in a different topic that "Having a larger size of boot disk can be achieved via an instance template or defining a large boot disk size with boot_disk_mib in compute resources." This was my preferred solution because I didn't have to create a template at all. Thank you!