google-container-registry

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

▼魔方 西西 提交于 2019-12-07 04:44:18
问题 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 anymore.) There are a bunch of Docker layers that an image brings with it. I want to remove all the unused layers with an image deletion. 回答1: UPDATE: You can now delete individual container images straight from the UI. Go to the Container Registry page. You

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

我怕爱的太早我们不能终老 提交于 2019-12-06 21:32:03
问题 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 push containers with no problems. I have tried doing "gcloud auth login" several times and it seems to make no difference. I don't have any problems running other gcloud commands locally. Any help would be greatly appreciated. 回答1: FYI for other

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

点点圈 提交于 2019-12-05 18:39:28
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 reasons stated previously, and also as this should probably have been asked on Server Fault in the first place. Thanks for everyone's help! running $ gcloud docker push gcr.io/kubernetes-test-1367/myapp results in: The push refers to a repository [gcr.io/kubernetes-test-1367/myapp] 595e622f9b8f: Preparing 219bf89d98c1: Preparing 53cad0e0f952:

Access Google Cloud service account credentials on Container OS inside Docker Container

无人久伴 提交于 2019-12-05 15:23:24
问题 Using the Container Optimized OS (COS) on Google Cloud Compute, what's the best way to access the credentials of the default service account for the VM-project from within a Docker container? $ gcloud compute instances create test-instance \ --image=cos-stable --image-project=cos-cloud $ ssh (ip of the above) # gcloud ... Command not found # docker run -ti google/cloud-sdk:alpine /bin/sh # gcloud auth activate-service-account ... --key-file: Must be specified. If the credentials were on the

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

无人久伴 提交于 2019-12-05 10:49:25
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 anymore.) There are a bunch of Docker layers that an image brings with it. I want to remove all the unused layers with an image deletion. Sandeep Dinesh UPDATE: You can now delete individual container images straight from the UI. Go to the Container Registry page . You should see a list of container images. Click the one you want to delete. Select one or more

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

烈酒焚心 提交于 2019-12-05 03:41:49
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 push containers with no problems. I have tried doing "gcloud auth login" several times and it seems to make no difference. I don't have any problems running other gcloud commands locally. Any help would be greatly appreciated. FYI for other customers running into similar issues: https://github.com/docker/docker/issues/22910 There exists a bug with

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

人走茶凉 提交于 2019-12-05 02:25:37
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 seem to help: $ gcloud container Usage: gcloud container [optional flags] <group | command> group may be clusters | operations command may be get-server-config Deploy and manage clusters of machines for running containers. flags: --zone ZONE, -z ZONE The compute zone (e.g. us-central1-a) for the cluster global flags: Run `gcloud -h` for a

Access Google Cloud service account credentials on Container OS inside Docker Container

…衆ロ難τιáo~ 提交于 2019-12-04 02:33:13
Using the Container Optimized OS (COS) on Google Cloud Compute, what's the best way to access the credentials of the default service account for the VM-project from within a Docker container? $ gcloud compute instances create test-instance \ --image=cos-stable --image-project=cos-cloud $ ssh (ip of the above) # gcloud ... Command not found # docker run -ti google/cloud-sdk:alpine /bin/sh # gcloud auth activate-service-account ... --key-file: Must be specified. If the credentials were on the VM, then Docker could just mount those. Ordinarily credentials would be in .config/gcloud/ , and do this

Find the list of Google Container Registry public images

时光总嘲笑我的痴心妄想 提交于 2019-12-03 03:57:04
问题 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. 回答1: 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

Error deploying GAE Flex with gcloud app deploy

你说的曾经没有我的故事 提交于 2019-12-02 21:06:22
All of a sudden having issues with deploying to GCP using gcloud app deploy . Created a brand new project and tried to upload a sample hello-world app from GCP, but still get the following error: ERROR: (gcloud.app.deploy) Error Response: [3] Docker image us.gcr.io/gcp-test-8710371/appengine/default.20181106t173450:latest was either not found, or is not in Docker V2 format. Please visit https://cloud.google.com/container-registry/docs/ui app.yaml: runtime: nodejs env: flex manual_scaling: instances: 1 resources: cpu: 1 memory_gb: 0.5 disk_size_gb: 10 SDK: Google Cloud SDK 224.0.0 I've checked