Questions tagged [google-cloud-registry]

20 questions
4
votes
0 answers

Is there a way to cache my own GCR image to avoid pulling it every build?

I have a build where this image is stored in my GCR and I want to reduce the time as it takes several minutes to pull each time. Is there a way to cache this image so each time it can be instantly taken from a cache? # Run tests - name:…
4
votes
2 answers

mkdir /mnt/data: read-only file system Back-off restarting failed postgres container

I'm new to Kubernetes, I tried to apply yaml file to create Postgres in GKE, I'm getting error as "Error: failed to start container "postgres": Error response from daemon: error while creating mount source path '/mnt/data': mkdir /mnt/data:…
3
votes
1 answer

How to avoid High Download charges when we pull docker images on cloud builds

We are building our stack on google cloud builds and for building we are using custom docker base images which are stored in gcr.io/project-name/image-name While using this method we are e getting charged on Download Worldwide Destinations…
3
votes
0 answers

disable docker config.json credentials for google cloud registry

I use Google Cloud Registry, which adds "auths" and "credHelpers" keys to my ~/.docker/config.json. The problem I have is that when I'm offline, or just building locally, it tries to connect to each hostname, which either fails (when offline) or is…
d-_-b
  • 21,536
  • 40
  • 150
  • 256
2
votes
1 answer

Google Cloud Container Registry Subdirectory Create

I have an image in registry1 and want to copy it over to a registry2. Assuming I would get that done by running this command (as stated here): gcloud container images add-tag \ gcr.io/registry1/image1:tag1 \…
1
vote
2 answers

How to list docker images in Google container registry (GCR) through python script?

I'm trying to write a python script to auto-delete old prerelease docker images that are taking up space in Google container registry. I'm stuck in how can I authenticate google cloud in python script and list docker images in GCR.
1
vote
0 answers

Cloud Run: image [name] not found even image does exist in container registry

I try to run my image on Cloud Run but it said: yaml: Anyway my image does exist in the Container Registry I try to run that container above with specific tag or Digest but it still doesn't work. Do we have the way to solve this kind of problem?
Sophoun
  • 81
  • 4
1
vote
0 answers

GCP VM Instance running a docker image with an "out of date" build argument

Context I'm attempting to build a CD pipeline in a GitHub action that creates a docker image, pushes it to Google Cloud Registry (GCR), and then restarts a VM instance with the latest image. Problem The VM Instance is somehow not running the latest…
1
vote
1 answer

Pods can't pull image from GCR after configuring google cloud sql proxy

I have a simple application (REST apis based on python and flask) that works well on Google kubernetes engine (GKE). My CI/CD setups create a docker image, push it to Google cloud registry (GCR) and then deploy it to GKE. Everything works well. Now,…
0
votes
0 answers

Issues with deploying apps to App Engine from Google Container Registry image

I've deployed a Docker image intended to bootstrap a simple Node.js backend. I have tried pulling locally and running a container instance and the image stored in Cloud Registry works perfectly. Now I am trying to use said image from an Azure DevOps…
0
votes
1 answer

large image pull using docker desktop in windows10 always failed at the end with error "unauthorized: failed authentication"

I am able to pull small-size images using docker desktop but getting issues with a large image of size around 7 GB, We are always getting stuck at the end while pulling large images using docker desktop in windows10 and it's getting failed with the…
0
votes
1 answer

Cloud Run - Why did I (owner) suddenly lose access to my container registry?

Something must have changed over night and I can't access my container images anymore. The permissions look fine in AIM since I am the owner and only user.
0
votes
1 answer

Why is Maven getting 403 when trying to push cloud function pointing at Cloud Registry?

I have a simple cloud function that relies on a jar published in Artifact registry. I have confirmed the default App Engine default service account has Artifact Registry Reader. Then I add the registries into Maven like…
0
votes
1 answer

Terraform timing out on a GitLab CI shared runner while creating a Google Cloud Run service

I'm trying to set up a pipeline using GitLab CI + Terraform to build a Docker image for a simple webapp, push it to the Google Cloud Registry, test it, deploy to a Cloud Run service, and then destroying the Cloud Run instance (this last one only to…
0
votes
1 answer

Docker fails to push images to Google Cloud Registry

I am trying to push a Docker image to Google Cloud Registry via the GitLab ci pipeline. The image builds but when its time to push to registry i get the following error. denied: Token exchange failed for project 'xxx-dev01-xxxxx'. Org Policy…
1
2