2 ms·
> This deployment needed to serve docker images on boot-up, which instance templates do support. However they don't support them via API, only in the web consol
by umvi 4y ago
> This deployment needed to serve docker images on boot-up, which instance templates do support. However they don't support them via API, only in the web console or the CLI.
Not exactly true. I got around this limitation by sending a startup script[1] in API metadata which basically just does invokes `docker run ...` and it works just fine. This allows spinning up/down container-based VMs via API only which is nice.
[1] https://cloud.google.com/compute/docs/instances/startup-scripts/linux https://cloud.google.com/compute/docs/instances/startup-scri...
- dilyevsky 4y agoYeah you can do the same thing via any image that supports cloud-init or ignition (eg fedora coreos) and have the same exact setup deployed in almost any cloud