Is there a way of passing my local google default application credentials (https://developers.google.com/identity/protocols/application-default-credentials) via docker run?
My usecase:
- Code running locally on my machine correctly handles default application credentials
- Code running within docker image on the GCE instance also correctly handles the default application credentials
- The problem is with "docker run" on my machine. Code running in the docker container do not use host default application credentials.
It would be nice if I could tell "docker run" to pass the host google default application credentials to the docker image.