Questions tagged [google-container-registry]

Google Container Registry provides secure, private Docker image storage on Google Cloud Platform.

Google Container Registry (also known as https://gcr.io/ ) provides secure, private Docker image storage on Google Cloud Platform.

The Google Container Registry runs on Google Cloud Platform, so can be relied upon for consistent uptime and security. The registry can be accessed through an HTTPS endpoint, so you can pull images from any machine, whether it's a Google Compute Engine instance or your own hardware.

448 questions
15
votes
5 answers

How to list the published container images in the Google Container Registry using gcloud or another CLI

Is there a gcloud API or other command line interface (CLI) to access the list of published container images in the private Google Container Registry? (That is the container registry inside a Google Cloud Platform project) gcloud container does not…
14
votes
7 answers

Delete untagged images on Google Cloud Registry

When we push repeatedly into gcr.io with the same image name and a version (tag), there is a high number of untagged images. Is there a simple way to remove all untagged images for a single image using the gcloud CLI tool to avoid incurring Storage…
Robert Lacok
  • 4,176
  • 2
  • 26
  • 38
14
votes
2 answers

How do I create a public image in Google Container Registry (GCR)?

I use GCR to store my team's private docker registry. I have a docker image that I want to make publicly visible so that multiple projects can use it / share with customers / etc. How do I make a docker image public within Google's Container…
Dave Dopson
  • 41,600
  • 19
  • 95
  • 85
13
votes
2 answers

Pull private docker images from Google Container Registry w/o gcloud

I'm using shippable to push private docker images to the Google Container Registry that I then want to pull from either locally on a laptop, or inside an instance on the Google Compute Engine. I know that the command gcloud preview docker pull…
12
votes
1 answer

Authenticate to Google Container Registry with Podman

The Google Container Registry documentation provides very good help on authenticating to it with Docker. Is there a way to do the same with Podman? The Google doc mentions Access Token as a method. Maybe that could work. If anybody has any advice or…
CeeTee
  • 778
  • 1
  • 9
  • 17
11
votes
3 answers

Unable to pull image from gcr.io

I've been trying to run the Hello Node tutorial for a couple of days now and I finally figured out what was preventing me from seeing the app, but I'm not sure why this is happening. I looked at the Kubernetes events tab and kept seeing this…
Sandro
  • 4,761
  • 1
  • 34
  • 41
10
votes
6 answers

Error pulling docker image from GCR into GKE "Failed to pull image .... 403 Forbidden"

Background: I have a GKE cluster which has suddenly stopped being able to pull my docker images from GCR; both are in the same GCP project. It has been working well for several months, no issues pulling images, and has now started throwing errors…
10
votes
2 answers

docker push to Google Container Registry errors "Caller does not have permission 'storage.buckets.create'"

I'm having a permission issues when pushing my image to Container Registry. The error I'm getting is denied: Token exchange failed for project ''. Caller does not have permission 'storage.buckets.create'. To configure permissions, follow…
David
  • 3,075
  • 3
  • 26
  • 36
10
votes
5 answers

Jenkins Pipeline Build with Docker, Google Registry, and Google Auth Plugin

I'm building a Docker image using a Jenkins pipeline (using a pipeline script that was auto-generated by JHipster). I want to push my final docker image to the Google Container Registry. Here's what I've done: I've installed both the CloudBees…
bcholmes
  • 944
  • 1
  • 9
  • 23
10
votes
3 answers

How can I cleanly remove a container image from the Google Container Registry?

I have pushed container images using gcloud docker push to the Google Container Registry. Two questions: How do I cleanly remove a pushed container image from the registry? (I know I can remove a tag to an image and make it not accessible…
9
votes
6 answers

Google Cloud Container Registry/Artifact Registry Permissions

I'm trying to push containers to the Google Cloud Container Registry or the Google Cloud Artifact Registry on Windows 10 using the Google Cloud SDK. I'm getting a similar permissions error from both services however I can't seem to figure out why.…
THawke
  • 131
  • 1
  • 1
  • 5
9
votes
6 answers

Create GCR secret error: exactly one NAME is required, got 26

I am trying to create a docker-registry secrete for GCR, but am getting a really cryptic error message. This is the kubectl cmd that I am running: kubectl create secret docker-registry gcrsecret --docker-username=_json_key --docker-password=”$(cat…
9
votes
7 answers

Push to google container registry fails: Retrying

I'm trying to push to the Google container registry from my Jenkins. The builds run inside the Kubernetes Jenkins Plugin, which uses the gcr.io/cloud-solutions-images/jenkins-k8s-slave to build the docker image into the Kubernetes native Docker.…
9
votes
2 answers

How to list images and tags from the gcr.io Docker Registry using the HTTP API?

I'm trying to fetch a list of available images and their tags from Google Container Registry (gcr.io) in Node.js. I first use google-auto-auth to optain a token with scope https://www.googleapis.com/auth/devstorage.read_write, and I exchange that…
9
votes
6 answers

Unable to Push to Google Container Registry (unable to access the repository)

Whenever I attempt to push a container to the Google Container Registry from my local machine, I get the following error: denied: Unable to access the repository; please check that you have permission to access it. If I open the Cloud Shell, I can…
Dale Alleshouse
  • 1,627
  • 2
  • 17
  • 24
1
2
3
29 30