问题描述
操作:从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
我还使用具有log.admin
和log.writer
角色的服务帐户尝试了The Google Cloud Logging driver for Docker
如何将日志发送到Stackdriver / Google Cloud Logging
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)