I am trying to run a Docker image through a Google Cloud proxy and despite my best efforts Google Cloud continues giving me this error:
Can't create logging client: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
Whenever I try to run my Docker image using this command:
sudo docker run dc701c583cdb
I have tried updating my GOOGLE_APPLICATION_CREDENTIALS
environment variable to the path of my key file.
I have successfully logged in to Google Cloud using the gcloud auth application-default login
command.
I've defined and associated my project in Google Cloud.
I am attempting this in order to run an open source project. I'm quite sure I created the Docker image correctly. I have a feeling the issue is coming from the fact that I am not correctly connecting the existing project to my Google Cloud.
Any advice would be greatly appreciated. I am using Docker 18.06.1-ce and Google Cloud-SDK 219.0.1. Running on a virtual linux machine with Ubuntu 18.04.
sudo bash
and then try and run the commands in the newly created shell as root. If that works, then maybe asudo -E
option might work where the environment is passed through to the sudo environment. – Kolban