How to make GCE instance stop when its deployed container finishes?
问题 I have a Docker container that performs a single large computation. This computation requires lots of memory and takes about 12 hours to run. I can create a Google Compute Engine VM of the appropriate size and use the "Deploy a container image to this VM instance" option to run this job perfectly. However once the job is finished the container quits but the VM is still running (and charging). How can I make the VM exit/stop/delete when the container exits? When the VM is in its zombie mode