简体   繁体   中英

Find the list of Google Container Registry public images

Where can I find the list of GCR public images? In case of docker images, we can list it in hub.docker.com. But I couldn't find anything like that for GCR.

指向 Google Container Registry 公共映像列表的链接是: https : //console.cloud.google.com/gcr/images/google-containers/GLOBAL

tl;dr There is no such thing, at least today.

GCR is first and foremost a private registry. However, we respect the ACL's that users put on the GCS bucket backing their repository. This is how we offer anonymous read to buckets like:

gcr.io/google-containers/...
gcr.io/google-appengine/...

Given a specific project, you can search within it using:

docker search gcr.io/google-containers/<substring>

I think there's a different answer to this question now:

You can run:

$ gcloud container images list --project google-containers

NAME
gcr.io/google-containers/addon-resizer
gcr.io/google-containers/aggregator
gcr.io/google-containers/alpine-iptables-amd64
gcr.io/google-containers/alpine-iptables-arm
gcr.io/google-containers/alpine-iptables-arm64
gcr.io/google-containers/alpine-with-bash
gcr.io/google-containers/apparmor-loader
gcr.io/google-containers/busybox
gcr.io/google-containers/cadvisor
...

You can also directly use gsutil to list all the blobs in a public GCR bucket with:

gsutil list gs://artifacts.PROJECT_ID.appspot.com/containers/repositories

For k8s.gcr.io and gcr.io

# k8s.gcr.io
# Access by browser or curl
https://k8s.gcr.io/v2/${namespace}/${image}/tags/list
# e.g. https://k8s.gcr.io/v2/sig-storage/nfs-subdir-external-provisioner/tags/list

# Access by browser,This is WebUI
https://console.cloud.google.com/gcr/images/k8s-artifacts-prod/us/${namespace}/${image}
# e.g. web ui https://console.cloud.google.com/gcr/images/k8s-artifacts-prod/us/sig-storage/nfs-subdir-external-provisioner

# gcr.io
# Access by browser or curl
https://gcr.io/v2/${namespace}/${image}/tags/list
# e.g. https://gcr.io/v2/gloo-mesh/cert-agent/tags/list 

# Access by browser,This is WebUI
https://console.cloud.google.com/gcr/images/${namespace}/global/${image}
# e.g. web ui https://console.cloud.google.com/gcr/images/etcd-development/global/etcd

ref Document webui access to k8s.gcr.io and https://github.com/anjia0532/gcr.io_mirror/blob/master/README.md#k8sgcrio-%E5%92%8C-gcrio-%E9%95%9C%E5%83%8Ftags

"Distroless" images are also in public:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM