小编Lay*_*ayo的帖子

Docker的Google Cloud Logging驱动程序

我无法验证gcplogsDocker 的谷歌云驱动程序,尽管我已将env var设置GOOGLE_APPLICATION_CREDENTIALS为我的服务帐户的JSON凭据所在的路径/文件.错误消息如下:

ERROR: for oncrm_oncrm_1  Cannot start service oncrm: failed to initialize logging driver: google.DefaultTokenSource: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
Run Code Online (Sandbox Code Playgroud)

我在docker-compose上使用的配置是:

logging:
      driver: gcplogs
      options:
        gcp-project: "gcloud-project-id"
        gcp-meta-name: "prod-helpsec-01"
        labels: "app"
Run Code Online (Sandbox Code Playgroud)

我正在尝试运行docker容器的环境是:

  • docker-ce v18.03
  • docker-compose v1.21.0
  • Ubuntu 17.10

docker docker-compose google-cloud-logging

5
推荐指数
1
解决办法
753
查看次数