1

要做的事: 从 docker 容器将日志发送到 Google Logs Viewer。

面对错误 我关注了这篇文章:https ://docs.docker.com/config/containers/logging/gcplogs/ 并执行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.

操作系统:容器优化操作系统 cos-81-12871-1196-0

我也试过这个The Google Cloud Logging driver for Docker with service account with log.adminand log.writerrole

如何将日志发送到 Stackdriver/Google Cloud Logging

4

0 回答 0