LinuxCommandLibrary

gcloud-container

Manage containerized applications on Kubernetes and clusters.

TLDR

Register gcloud as a Docker credential helper

$ gcloud auth configure-docker
copy


Create a cluster to run GKE containers
$ gcloud container clusters create [cluster_name]
copy


List clusters for running GKE containers
$ gcloud container clusters list
copy


Update kubeconfig to get kubectl to use a GKE cluster
$ gcloud container clusters get-credentials [cluster_name]
copy


List tag and digest metadata for a container image
$ gcloud container images list-tags [image]
copy

Copied to clipboard