google-container-registry

Google Container Registry access denied when pushing docker container

余生颓废 提交于 2019-11-29 09:30:15
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 services. Anything I'm missing ? When you create you Google Cloud VM instance, make sure it has the

Pull private docker images from Google Container Registry w/o gcloud

大憨熊 提交于 2019-11-29 02:53:33
问题 I'm using shippable to push private docker images to the Google Container Registry that I then want to pull from either locally on a laptop, or inside an instance on the Google Compute Engine. I know that the command gcloud preview docker pull gcr.io/projectID/image-name works, but I can't rely on gcloud being installed on every machine that someone may need to pull the image from. If I run docker-compose up -d on my machine then I get the following error: Pulling image gcr.io/projectID/image

How do I run private docker images on Google Container Engine

£可爱£侵袭症+ 提交于 2019-11-28 15:49:02
问题 How do I run a docker image that I built locally on Google Container Engine? 回答1: You can push your image to Google Container Registry and reference them from your pod manifest. Detailed instructions Assuming you have a DOCKER_HOST properly setup , a GKE cluster running the last version of Kubernetes and Google Cloud SDK installed. Setup some environment variables gcloud components update kubectl gcloud config set project <your-project> gcloud config set compute/zone <your-cluster-zone>

How to list images and tags from the gcr.io Docker Registry using the HTTP API?

不羁岁月 提交于 2019-11-28 08:11:45
问题 I'm trying to fetch a list of available images and their tags from Google Container Registry (gcr.io) in Node.js. I first use google-auto-auth to optain a token with scope https://www.googleapis.com/auth/devstorage.read_write , and I exchange that token for a gcr.io token like so: axios.get('https://gcr.io/v2/token?service=gcr.io', { auth: { username: '_token', password: token // token I got from `google-auto-auth` } }) I then try to use this to call the v2/_catalog endpoint: axios.get('https

Access google container registry without the gcloud client

纵饮孤独 提交于 2019-11-26 06:06:36
问题 I have a CoreOS docker host that I want to start running containers on, but when trying to use the docker command to fetch the image from the google container private registry (https://cloud.google.com/tools/container-registry/), I get a 403. I did some searching, but I\'m not sure how to attach authentication (or where to generate the user+pass bundle to use with the docker login command). Has anybody had any luck pulling from the google private containers? I can\'t install the gcloud