To do: Send logs to Google Logs Viewer from docker container.
Faced Error I followed this article: https://docs.docker.com/config/containers/logging/gcplogs/ and executed
docker run --log-driver=gcplogs nginx
docker: Error response from daemon: failed to initialize logging driver: unable to connect or authenticate with Google Cloud Logging: rpc error: code = PermissionDenied desc = The caller does not have permission.
OS: Container Optimized OS cos-81-12871-1196-0
I also tried this The Google Cloud Logging driver for Docker with service account with
How do I send the logs to Stackdriver/Google Cloud Logging?