google-container-registry

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

僤鯓⒐⒋嵵緔 提交于 2019-12-22 09:34:41
问题 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

Auto update pod on every image push to GCR

半世苍凉 提交于 2019-12-21 05:44:26
问题 I have a docker image pushed to Container Registry with docker push gcr.io/go-demo/servertime and a pod created with kubectl run servertime --image=gcr.io/go-demo-144214/servertime --port=8080 . How can I enable automatic update of the pod everytime I push a new version of the image? 回答1: I would suggest switching to some kind of CI to manage the process, and instead of triggering on docker push triggering the process on pushing the commit to git repository. Also if you switch to using a

Error deploying GAE Flex with gcloud app deploy

…衆ロ難τιáo~ 提交于 2019-12-20 10:05:53
问题 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:

How to remove a pushed image in Google Container Registry

寵の児 提交于 2019-12-18 19:12:00
问题 Is it possible to remove a pushed image from Google Container Registry ? I mean without handling the Google Cloud Storage directory directly. Thanks! 回答1: As explained here you can delete an image from Google Container Registry with the following gcloud command: gcloud container images delete IMAGE_NAMES [IMAGE_NAMES …] [GLOBAL-FLAG …] 回答2: With current UI and its implementation, you can only delete tags, the underlying images will not be deleted. If it is a Docker V2 images, from command

How to remove a pushed image in Google Container Registry

自古美人都是妖i 提交于 2019-12-18 19:10:39
问题 Is it possible to remove a pushed image from Google Container Registry ? I mean without handling the Google Cloud Storage directory directly. Thanks! 回答1: As explained here you can delete an image from Google Container Registry with the following gcloud command: gcloud container images delete IMAGE_NAMES [IMAGE_NAMES …] [GLOBAL-FLAG …] 回答2: With current UI and its implementation, you can only delete tags, the underlying images will not be deleted. If it is a Docker V2 images, from command

Google Container Registry access denied when pushing docker container

半世苍凉 提交于 2019-12-18 05:43:35
问题 I try to push my docker container to the google container registry, using this tutorial, but when I run gcloud docker push b.gcr.io/my-bucket/image-name I get the error : The push refers to a repository [b.gcr.io/my-bucket/my-image] (len: 1) Sending image list Error: Status 403 trying to push repository my-bucket/my-image: "Access denied." I couldn't find any more explanation (no -D, --debug, --verbose arguments were recognized), gcloud auth list and docker info tell me I'm connected to both

Gcloud and Docker: Pushing images is failing because of insufficient space

坚强是说给别人听的谎言 提交于 2019-12-13 03:37:39
问题 I am trying to upload a 2GB Docker image to the Google Container registry: gcloud docker push eu.gcr.io/project-id/image I get the following error: Failed to generate layer archive: write /mnt/sda1/var/lib/docker/graph/_tmp/be959f8b6f706fb75cdc24b/28450517: no space left on device ''' Another problem I encountered is a about a failing push. It seems the upload has not worked and then I cannot push it again: Error response from daemon: push eu.gcr.io/project-id/image is already in progress By

Docker Login to gcr.io in Powershell

泪湿孤枕 提交于 2019-12-13 02:43:31
问题 I'm trying to log in to Google's Container Registry on Windows 10 by using a JSON Key file. I have this working without issues on my Mac so the keyfile is definitely working. First off I had issues getting the docker login function to accept the contents of the JSON key file. I've tried running the " /set /p PASS... " command in CMD and I've tried something along the lines of this in Powershell: docker login -u _json_key -p "$(Get-Content keyfile.json)" https://gcr.io These all result in

Using Google Container Registry from GKE in another project

巧了我就是萌 提交于 2019-12-12 16:26:44
问题 How can a GKE cluster pull container images from a Container Registry hosted in another project? I have a GKE cluster in project <reader-project> trying to access a GCR image in project <registry-project> . I've tried adding the GCE service account email for <reader-project> as a User with Reader access on the storage bucket in <registry-project> , but I'm still getting the error: <Error><Code>AccessDenied</Code> <Message>Access denied.</Message> <Details>Caller does not have storage.objects

Google Container Builder: How to install govendor dependencies during build step?

半腔热情 提交于 2019-12-12 04:08:56
问题 I am trying to use Google Cloud Container Builder to automate the building of my containers using GCP Build Triggers My code is in Go, and I have a vendor folder in my project root which contains all of my Go dependencies (I use govendor ). However, this vendor folder is NOT checked in to source control. I have a cloudbuild.yaml file where I first build my Go source into a main executable, and then build a Docker image using this executable. Container Builder ensures these build steps have