Skip to content

Instantly share code, notes, and snippets.

@Alexandredc
Last active December 1, 2017 13:36
Show Gist options
  • Save Alexandredc/85f037997af64cbf67cf7cb57208427f to your computer and use it in GitHub Desktop.
Save Alexandredc/85f037997af64cbf67cf7cb57208427f to your computer and use it in GitHub Desktop.
Using GCP & Docker with local credentials

Using GCP & Docker with local credentials

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment