gcloud auth configure-docker

From wikieduonline
Revision as of 11:05, 22 June 2022 by Welcome (talk | contribs)
Jump to navigation Jump to search

gcloud auth configure-docker register gcloud as a Docker credential helper

gcloud auth configure-docker
gcloud auth configure-docker gcr.io

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.


See also

Advertising: