Using gcloud, I want to create an instance template of type n1-standard-1 with an attached GPU and a docker container. This can be done through the console but I want to do it from the command line.
It is possible to create an instance template with GPU using gcloud alpha compute instance-templates create and the --accelerator option.
It is also possible to create an instance template with a container using gcloud alpha compute instance-templates create-with-container but in this case the --accelerator option is not recognized.
... but it is not possible to both specify the container image and request GPU or am I missing something ? Any work-around beside creating the template manualy using the console ?