Using Google cloud registry

Google container registry (https://cloud.google.com/container-registry/) is a part of the GCP. Similar to AWS, having a GCP account is required, as well as Cloud SDK (https://cloud.google.com/sdk/), which is the command-line interface in GCP. More details about GCP will be described in Chapter 7, Building Kubernetes on GCP

On GCP, we'll just need to create a project and enable billing and the container registry API for our project. Otherwise, any operation in gcloud will display an error:

$ gcloud container images list 
ERROR: (gcloud.container.images.list) Bad status during token exchange: 403

In order to enable billing and container registry API, visit the GCP web console (https://console.cloud.google.com), navigate to the billing page and container registry page, then just enable those. Once activation is done, you can use the gcloud container command:

$ gcloud container images list 
Listed 0 items.

Now we can start to use Google container registry.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.136.142