Questions tagged [google-container-registry]
Google Container Registry provides secure, private Docker image storage on Google Cloud Platform.
448
questions
1
vote
0
answers
74
views
Error code 13 while deploying google cloud function (terraform) from dev to qa
I am facing an issue while deploying google cloud functions using terraform from dev to qa.
Here is an error code that I got in gitlab.
Error: Error waiting for Creating Cloud Functions Function: ...
1
vote
1
answer
148
views
Different behavior on Google Container Registry vs Google Artifact Registry (breaking change)
I am attempting to run Dbt in Google Cloud Run with the following Dockerfile
FROM python:3.11
RUN apt-get update -y
COPY requirements.txt /
RUN pip install -r /requirements.txt
COPY . /app
WORKDIR /...
0
votes
0
answers
34
views
GCP App Engine Custom Runtime Image location
I have create an app engine in gcp which uses a custom runtime. And I could see that the resources(docker images) getting uploaded to the cloud storage bucket. But I cannot see the image in container ...
0
votes
1
answer
135
views
What is the appropriate role for container registry in order to push and pull docker images from the GCR?
"roles/storage.admin" , "roles/artifactregistry.admin" .
Which of these roles has access over Google container registry.
"roles/containerregistry.admin", Does this role ...
0
votes
1
answer
61
views
is it necessary to migarte the images from Container Registry to Artifact Registry
is it necessary to migarte the images from Container Registry to Artifact Registry as Container Registry is getting end of support by MAy 2024 or "gcr.io" will automatucally be re-directed?
...
0
votes
1
answer
379
views
I want to fix security vulnerability in my docker image
I had uploaded a Docker image in Google container Registry. It scanned the image and shows me many vulnerabilities I want to fix atleast critical ones and of high priority so how can I fix it also is ...
0
votes
0
answers
39
views
How to set Container build path in Cloud Function?
I'm creating a Cloud Function that extracts data from an API and throws it into a bucket. When I run the build of my function, it says that it is not possible to access the container present in the ...
0
votes
1
answer
238
views
How to pass env variables and arguments while building cloud build docker images?
I am trying to learn cloudbuild and starting with a simple project where,when I commit to a branch of a github, a docker container is build,which copies a bash script file and print its content.
I ...
0
votes
1
answer
48
views
Google Cloud Run
I recently started having problems deploying new revisions to Google Cloud Run.
I'm following the same old routine for deployment I have used for a couple years.
When I am in the gcloud cli, it tries ...
0
votes
2
answers
145
views
authenticate docker for gcp artifact registry in bazel test
I have a bazel test that docker build and docker push to google artifact registry a docker image. It fails, because "cannot create private file:
/home/bill/.config/gcloud/credentials.db".
I ...
2
votes
2
answers
363
views
Google Container Registry: Permission issue while trying to pull/push images with authenticated credentials
In Ubuntu-22, google-cloud has been installed through snap store;
> whereis gcloud
gcloud: /snap/bin/gcloud
> snap list | grep google
google-cloud-sdk 432.0.0 346 ...
4
votes
2
answers
391
views
Migrate "App Engine Standard" away from"Container Registry?" (for "Artifact Registry")
An email just went out about how this migration needs to happen, but it's not entirely clear how this affects App Engine Standard. I have a couple of small things running on that, and the only thing I ...
0
votes
1
answer
554
views
google.api_core.exceptions.InvalidArgument: 400 invalid repository
I am trying to create a repository in Artifact registry of GCP using Python API by following below link.
https://cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud....
0
votes
0
answers
76
views
Looking for a middleware or proxy for Google Container Registry
Currently, I am using self-managed harbor repo for the docker repository. (managed by someone else).
Due to some reasons, I must migrate away from the above harbor repo.
Currently, most/all of our ...
0
votes
0
answers
62
views
Pushing docker image to GCR from shell script doesn't work but works fine from terminal
I'm trying to push a Docker image to GCR from a shell script but I keep getting this error:
unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid ...
1
vote
1
answer
291
views
Set limit on maximum size of bucket in GCP
I am using Google Cloud Storage(GCS) to store some images, and want to set a limit on the maximum size the bucket can reach.
The actual use case is, I will be using Google Container Registry(GCR), ...
1
vote
1
answer
759
views
Docker unable to login using _json_key_base64, but can login with _json_key
I saved the json key file to a local file jsonkey, then login to GCR using it. Following this guide, I should be able to login using either json key or base64 encoded json key.
However ...
2
votes
0
answers
128
views
Any change in deployment methods when changing from Google Container Registry to Artifact Registry
I currently deploy my app using the Google Cloud SDK Shell using gcloud app deploy after navigating to the folder where my app.yaml is stored. It is a simple Flask app on Python 3.9.
I currently use ...
0
votes
1
answer
77
views
How do I use docker commands in docker container?
I am using .gitlab-ci.yml file as below.
I want to perform docker pull & push to google container registry
image:
name: google/cloud-sdk:latest
entrypoint: [ "" ]
variables:
...
0
votes
0
answers
200
views
ExternalSecret configuration for Google Container Registry
My ExternalSecret resource references a Hashicorp key-value Vault secret that stores a Google service account (json).
The ExternalSecret will create a Secret of type kubernetes.io/dockerconfigjson.
...
3
votes
2
answers
565
views
Get container image label without pulling the image from GCR
I am trying to create a dataset for at least 250 container images built by docker and pushed to a single GCP project on Google Container Repository (GCR). The GCR is highly active, thus it changes the ...
1
vote
2
answers
559
views
GCP Cloud Build can't connect to GCS bucket with file during build stage in dockerfile
This is the dockerfile that I'm using:
FROM google/cloud-sdk:latest
COPY . /app
WORKDIR /app
# Copy your credentials file
COPY project-key.json /app/project-key.json
# Set the environment variable ...
2
votes
1
answer
436
views
Docker push in (GitHub actions) to GCR creates multiple images
In my workflow, I am building an image and pushing it to local registry
- name: build and push to local registry
uses: docker/[email protected]
with:
context: ${{...
0
votes
1
answer
350
views
simple example for Transition to Artifact Registry
I currently use Container Registry and builds images with command line like an example given below
./mvnw com.google.cloud.tools:jib-maven-plugin:3.2.1:build -Dimage=gcr.io/xyzproject/myimage
...
2
votes
0
answers
171
views
How to get full GCP GCR image name using Golang to use in container-analysis for vulnerabilities
I would like to get a compiled list of image vulnerabilities from GCP similar to what shows in the console but in an automated report-type fashion. Using Golang, my thought process was to get the list ...
0
votes
1
answer
443
views
Is there a way to recover Google Cloud Function source code when the bucket does not exist, but it can still run?
I have 13 Google Cloud Functions running in my Google Cloud Project. Several of them are triggered by Google Cloud Scheduler. I went to make an edit to one of the functions the other day and got the ...
0
votes
1
answer
566
views
Getting image pull history using Registry API
I am trying to create a python script to see when was last time my image was pulled from a container registry. I went through Registry API under API Reference and tried the following APIs to get ...
0
votes
0
answers
76
views
Where can I find a pub/ sub schema for cloud-builds and gcr topics?
Where can I find a pub/ sub schema for cloud-builds and gcr topics?
The gcr topic is explained in https://cloud.google.com/container-registry/docs/configuring-notifications#notification_examples, ...
0
votes
1
answer
71
views
running commands from cloud-builders-community/sonarqube/
gcloud builds submit . --config=cloudbuild.yaml
Creating temporary tarball archive of 6 file(s) totalling 3.2 KiB before compression.
Uploading tarball of [.] to [gs://training_cloudbuild/source/...
1
vote
0
answers
44
views
Push image to gcr registry through REST calls
I have a golang app running in a kubernetes cluster which must push an image it builds periodically to gcr.io using REST endpoint (There are project constraints that does not allow me to use libraries ...
-2
votes
1
answer
2k
views
Docker push: Force Push All Layers?
Does docker push possess a --force flag which forces all layers to be pushed to the repository, regardless of whether the repository believes those layers are unchanged?
Thank you!
0
votes
1
answer
2k
views
Failed to authorize when pushing docker image to GCR
I got stuck when pushing my docker image to Google Container Registry. There is always this error message:
failed to authorize: failed to fetch anonymous token: unexpected status: 401 Unauthorized
I ...
2
votes
1
answer
306
views
Transitioning container registry to gcr.io finalise step failure
I have completed the steps to transition my container registry images to artifact registry.
But on the last step (Finalise), I keep getting this error with no extra information on how to solve it: ...
0
votes
2
answers
123
views
Alternative means off authenticating GCP registry
So I am trying to get a list of images from GCP Container Registry. This HTTP API call works fine:
## generate token and save it
export TOKEN=$(gcloud auth print-access-token) ## just to get a token
#...
2
votes
2
answers
291
views
how to authenticate the docker provider in terraform cloud for "gcr.io"?
I'm trying to deploy my cloud run services via terraform and I've been trying to use the docker provider to login to gcr.io and pickup the sha256 digest to set as the container image.
I have found ...
0
votes
0
answers
190
views
Signed Docker images with Google Cloud Container Registry or Artifact Registry
When I try to sign a docker image in GCR or GAR I use:
docker trust sign name:label
But I get this error: Error: error contacting notary server: unknown: Project 'project:XXX' not found or deleted
...
1
vote
1
answer
1k
views
Issues using skopeo copy to gcr, unable to authenticate on google cloud
I'm trying to pull and push images in a Gitlab pipeline avoiding to use docker-in-docker approach so I'm trying to use skopeo for that.
But right now I'm having issues authenticating skopeo on gcr ...
0
votes
1
answer
72
views
Why can I not see the images from the Container Registry?
I have created a docker image and uplaoded it to Container Registry.
But when I try to access the image by clicking "Create a Deployment" from my K8s cluster, I get the following error: You ...
0
votes
1
answer
137
views
Docker Image on Google Cloud Exiting (No detached mode)
I have a docker image on the container registry of google. The issue i'm facing is that it I do not see an option to add docker run-type arguments like:
--detached
I would run my container by calling
...
2
votes
2
answers
1k
views
Authenticate Google Compute Engine (GCE) to Pull Image from Google Container Registry (GCR)
I'm building deployment pipeline using Google Cloud Build and store the Docker image in GCR. I planned to restart the GCE instance group on the latest Cloud Build step so the GCE can run the latest ...
2
votes
1
answer
664
views
How to run docker image inside GCP Compute Engine instance with Apache Airflow
I am trying to create an Airflow DAG from which I want to spin a Compute Engine instance with a docker image stored in Google Container Registry.
In other words, I wanted to replicate gcloud compute ...
0
votes
1
answer
310
views
ImagePullBackOff on kubeflow
When I tried to run kubeflow pipelines on minikube with components whose Docker images are stored in Google Container Registry, I got ImagePullBackOff error.
I already set credential according to Ref1,...
2
votes
1
answer
1k
views
How to address python3.7 Docker vulnerabilities reported in docker scan
We are trying to build our service as docker image. We are having flask service in docker image. If we use python3.7 as base image, we are getting many vulnerabilities. Even after upgrading versions, ...
1
vote
2
answers
740
views
GCP Artefact registry does not allow sub directories to organise the images dev,prod etc
We are planning to move to the GCP artefact registry from Google Container registry however we have observed that there is no provision to create or push images to subfolders.
For example:
I need to ...
1
vote
1
answer
152
views
Unable to scan GCR image through Jenkins
I am trying to build a sample docker image, push it to GCR and scan it on GCR using a jenkins stage. I am able to create it, push it but scan isnt working. Not sure what needs to be the stage steps ...
0
votes
1
answer
119
views
Is there Python SDKs to test if docker exists in Google Container Registry (GCR)
I am trying to check if the docker image, gcr.io/<project_id>/: exists in GCR programmatically using Python.
Are there any SDKs I can use to check this? I know running gcloud command to check ...
1
vote
1
answer
642
views
Google Cloud Platform container list tags permission denied
When executing the command:
gcloud container images list-tags gcr.io/x/x
In the terminal, I get the following error:
(gcloud.container.images.list-tags) Access denied: gcr.io/x/x
Which role do I ...
1
vote
2
answers
7k
views
401 Unauthorized error while trying to pull image from Google Container Registry
I am using google container registry (GCR) to push and pull docker images. I have created a deployment in kubernetes with 3 replicas. The deployment will use a docker image pulled from the GCR.
Out of ...
1
vote
1
answer
661
views
How to configure GCR with K3S
Trying to set up Google container registry (GCR) with k3s according to the documentation - Private Registry Configuration
https://rancher.com/docs/k3s/latest/en/installation/private-registry/
I keep ...
0
votes
1
answer
713
views
Internal Server Error when trying to connect to postgres container on Google Cloud Platform using Pgadmin
I have deployed a postgres docker image using a cloudbuild.yaml file. My service is deployed on cloud run but I am not able to connect to the database using the url provided by the cloud run. I have ...