gcplogs
尽管我已将 env var 设置GOOGLE_APPLICATION_CREDENTIALS
为我的服务帐户的 JSON 凭据所在的路径/文件,但我无法验证 Docker 的谷歌云驱动程序。错误消息如下:
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.
我在 docker-compose 上使用的配置是:
logging:
driver: gcplogs
options:
gcp-project: "gcloud-project-id"
gcp-meta-name: "prod-helpsec-01"
labels: "app"
我试图运行 docker 容器的环境是:
docker-ce v18.03
docker-compose v1.21.0
Ubuntu 17.10