我无法验证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.03docker-compose v1.21.0Ubuntu 17.10