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
6
votes
1 answer

Bitbucket Pipelines: pulling an image from GCR with environment variables fails

So I'm trying to use an image from my Google Container Registry, since this is a private registry I need to authenticate. Obviously I don't want to renew my auth token every hour to make my pipelines work, so I need to go for the json key file. It…
TheWolfNL
  • 1,263
  • 1
  • 13
  • 29
6
votes
1 answer

Auto-scaling is taking more time to bring up new pod and giving connection error in google container engine

I have used following command for autoscaling. kubectl autoscale deployment catch-node --cpu-percent=50 --min=1 --max=10 The status of autoscaling in my case on load test is as like below . 27th minute NAME REFERENCE …
6
votes
1 answer

Is it possible to deploy a docker hub publicly hosted image to Kubernetes Container Engine without uploading it to Containers Registery?

Still new to Containers and Kubernetes here but I am dabbling with deploying a cluster on Google Containers Engine and was wondering if you can use a docker hub hosted image to deploy containers, so in my .yaml configuration file I'd say: ... …
5
votes
2 answers

How to copy artifacts between projects in Google Artifact Registry

Previously using Container Registry one could copy a container between projects using this method However I am unable to get this working using Artifact Registry. If I try gcloud artifacts docker tags add \ …
5
votes
3 answers

GCP: Unable to pull docker images from our GCP private container registry on ubuntu/debian VM instances

I am trying to pull a docker container from our private GCP container registry on a regular VM instance (i.e. ubuntu-1904) running on Google Cloud, but I am getting the following error: user@test ~ $ sudo docker pull…
5
votes
1 answer

Google Container Registry permission

I am trying to push docker image to GCP, but i am still getting this error: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in:…
5
votes
3 answers

What Service Account Does GKE Use to Access GCR

One of the Google Kubernetes Engine (GKE) clusters ($GKE_CLUSTER) within a Google Cloud Platform (GCP) project ($GCP_PROJECT) seems to be unable to pull Docker Images from Google Container Registry (GCR): kubectl config…
5
votes
2 answers

Gsutil Not working in Dockerfile on Google Compute Engine

I'm a bit new to Docker and I'm trying to copy resources from my cloud bucket to my instance created with a docker image. I use gsutil with the following in my Dockerfile # Install Google Cloud tools - Debian…
5
votes
1 answer

exec: "gcc": executable file not found in $PATH

I'm having an issue where an App Engine project will no longer build remotely (via gcloud app deploy) This has started out of the blue, with no code changes at this end. Not sure if relevant, but it's a go 1.9 project deploying to the App Engine…
calcinai
  • 2,567
  • 14
  • 25
5
votes
2 answers

Triggering a build for a specific git commit via gcloud commandline tool

All the examples that I've come across have been of the following format: gcloud container builds submit --config cloudbuild.yaml . The man-page says the following: [SOURCE] The source directory on local disk or tarball in Google Cloud…
5
votes
2 answers

how to obtain GCR access token with python / listing docker images

The access token im getting with gcloud auth print-access-token is obviously a different access token than the one i can get with some basic python code: export GOOGLE_APPLICATION_CREDENTIALS=/the-credentials.json from oauth2client.client import…
5
votes
0 answers

How do I specify a source in build requests using gcloud container builds submit?

I am trying to specify a build request with the source specified as a repoSource: { …
5
votes
2 answers

Cannot access Google Container Registry from Google Compute Engine

I'm at my wits trying to get Docker images from Google Container Registry onto a Google Compute Engine instance. (The images I need have been successfully uploaded to GCR.) I've logged in using gcloud auth login and then tried gcloud docker pull --…
5
votes
9 answers

How to push container to Google Container Registry (unable to create repository)

EDIT: I'm just going to blame this on platform inconsistencies. I have given up on pushing to the Google Cloud Container Registry for now, and have created an Ubuntu VM where I'm doing it instead. I have voted to close this question as well, for the…
5
votes
2 answers

What is the gcloud API for the Google Container Registry

I have to list the Docker container images published in a certain project, but I cannot find an appropriate API using the gcloud CLI tool. Is this possible? Is there any other solution to list the container images form this private container…