I’ve got a container which logs normally through the standard Docker drivers. I’ve now run this container on GCP via the
gcloud compute instances create-with-container command, and I want to see the logs in Stackdriver. Right now, they do not appear.
From what I can tell, combining the advice from here and here, I have to start the host instance, set the default logging driver to GCP by editing docker’s daemon.json, and then restart the host instance.
Is this truly the easiest way to get these containers to log to the normal standard google cloud logging solution? I think that
gcloud compute instances create-with-container should do this by default, and that I’m missing something.