I think it could be helpful to have a shutdown script that stops the docker processes gracefully. https://cloud.google.com/compute/docs/shutdownscript