Many Google Cloud Platform products need credentials to works. During development, you often work on your local machine using gcloud tool with gcloud auth
command to log in.
Using local credentials on a Docker Container is very straight forward. You only need gcloud tool installed on your Docker Image or using google/cloud-sdk image and using this tips when using docker run
:
docker run -v ~/.config/gcloud:/root/.config/gcloud your_docker_image