I am trying to deploy a container on a Compute Engine VM (using the create-with-container
parameter).
The container runs a single long running task and exits. How can I shut down the VM when the container exits?
[Edit: the workload is implemented in Java and is memory intensive, hence the choice of Compute Engine rather than a managed service like App Engine or Cloud Functions]