Difference between revisions of "Gcloud auth configure-docker"
Jump to navigation
Jump to search
(Created page with "{{lc}} gcloud auth configure-docker") |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | <code>[[gcloud auth]] configure-docker</code> register gcloud as a Docker [[credential helper]] | ||
+ | * https://cloud.google.com/sdk/gcloud/reference/auth/configure-docker | ||
+ | |||
[[gcloud auth]] configure-docker | [[gcloud auth]] configure-docker | ||
+ | gcloud auth configure-docker [[gcr.io]] | ||
+ | [[gcloud auth]] configure-docker us-docker.[[pkg.dev]] | ||
+ | |||
+ | |||
+ | gcloud auth configure-docker | ||
+ | [[gcloud auth configure-docker --help]] | ||
+ | [[gcloud auth configure-docker -q]] | ||
+ | |||
+ | == Example == | ||
+ | gcloud auth configure-docker | ||
+ | Adding credentials for all [[GCR]] repositories. | ||
+ | WARNING: A long list of credential helpers may cause delays running '[[docker build]]'. We recommend passing the registry name | ||
+ | to configure only the registry you are using. | ||
+ | After update, the following will be written to your Docker config file located at | ||
+ | [/Users/YOUR_USER/[[.docker/config.json]]]: | ||
+ | { | ||
+ | "credHelpers": { | ||
+ | "gcr.io": "gcloud", | ||
+ | "us.gcr.io": "gcloud", | ||
+ | "eu.gcr.io": "gcloud", | ||
+ | "asia.gcr.io": "gcloud", | ||
+ | "staging-k8s.gcr.io": "gcloud", | ||
+ | "marketplace.gcr.io": "gcloud" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | Do you want to continue (Y/n)? Y | ||
+ | |||
+ | Docker configuration file updated. | ||
+ | |||
+ | |||
+ | == Related == | ||
+ | * <code>[[brew install docker-credential-helper]]</code> | ||
+ | |||
+ | == See also == | ||
+ | * {{gcloud auth}} | ||
+ | |||
+ | [[Category:GCP]] |
Latest revision as of 13:09, 13 July 2024
gcloud auth configure-docker
register gcloud as a Docker credential helper
gcloud auth configure-docker gcloud auth configure-docker gcr.io gcloud auth configure-docker us-docker.pkg.dev
gcloud auth configure-docker gcloud auth configure-docker --help gcloud auth configure-docker -q
Example[edit]
gcloud auth configure-docker Adding credentials for all GCR repositories. WARNING: A long list of credential helpers may cause delays running 'docker build'. We recommend passing the registry name to configure only the registry you are using. After update, the following will be written to your Docker config file located at [/Users/YOUR_USER/.docker/config.json]: { "credHelpers": { "gcr.io": "gcloud", "us.gcr.io": "gcloud", "eu.gcr.io": "gcloud", "asia.gcr.io": "gcloud", "staging-k8s.gcr.io": "gcloud", "marketplace.gcr.io": "gcloud" } } Do you want to continue (Y/n)? Y Docker configuration file updated.
Related[edit]
See also[edit]
Advertising: