0
我無法理解問題出在哪裏。這就是我運行的和我得到的錯誤。任何幫助表示讚賞。謝謝!GCP日誌記錄驅動程序:未能初始化
export GOOGLE_APPLICATION_CREDENTIALS=/home/user/dolog/log-writer.json
docker -D run --log-driver=gcplogs \
--log-opt labels=location \
--log-opt gcp-project=scg-log-test \
--log-opt env=TEST \
--log-opt env=GOOGLE_APPLICATION_CREDENTIALS \
--log-opt gcp-log-cmd=true \
--env "TEST=false" \
--env "GOOGLE_APPLICATION_CREDENTIALS=/home/user/dolog/log-writer.json" \
--label location=west \
--name PYTEST \
--rm \
pytest
DEBU[0001] Corrupted prefix: []
DEBU[0001] [hijack] End of stdout
/usr/bin/docker-latest: Error response from daemon: 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..
泊塢版本:
Server Version: 1.12.1
Server版本:
3.10.0-514.el7.x86_64
預先感謝您。