Category : google-container-registry

I have a project in Google Cloud and I want to tag image in Container Registry with new_tag. I wrote code: import docker cli = docker.from_env() img = cli.images.get(‘my_image:latest’) tagged = img.tag(‘my_image:new_tag’) print(‘image tagged: ‘ + str(tagged)) How could I set arguments for docker.from_env such as host (gcr.io), project (my_project) and authentication with google cloud ..

Read more

After installing SpaCy high accuracy model to my python pipeline, the docker container size went from 60mb to 3.5GB. Consequently a Container Optimized Compute Instance boot up time increased significantly as well. Is there any way I could push the SpaCy part to GCR ones and then only deal with the 60mb container? Dockerfile: FROM ..

Read more

Recently got a new Mac, and now I am struggling to push docker containers to GCR – receiving the 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: https://cloud.google.com/container-registry/docs/advanced-authentication Commands that led to this error: docker build -t ..

Read more

I’m working on google container optimised OS (COS) trying to pull an image from Google Container Registry using docker-compose. I completed the the authentication using docker-credential-gcr. Now docker pull gcr.io/projectname/nextjs works however > docker-compose pull Pulling nextjs … error ERROR: for nextjs unauthorized: You don’t have the needed permissions to perform this operation, and you ..

Read more

Background: I have a GKE cluster which has suddenly stopped being able to pull my docker images from GCR; both are in the same GCP project. It has been working well for several months, no issues pulling images, and has now started throwing errors without having made any changes. (NB: I’m generally the only one ..

Read more

I have a very simple docker image that I pushed up to GCR. The docker compose file I use locally looks like: version: ‘3.7’ services: matterbridge: image: 42wim/matterbridge restart: unless-stopped volumes: – ~/Code/Bot-Relay/matterbridge:/etc/matterbridge I’m trying to create a GCE VM instance with my GCR image, however I’m not sure how to create a volume and ..

Read more

Has anyone figured out how to pull from private GCR repos in the containrrr watchtower image in docker compose? For context, I ran gcloud auth configure-docker in the host, and added these volumes to watchtower: version: "3.4" services: app: image: gcr.io/<proj>/<img>:latest watchtower: image: containrrr/watchtower volumes: – /var/run/docker.sock:/var/run/docker.sock – /root/.docker/config.json:/config.json – /root/.config/gcloud:/.config/gcloud – /usr/lib/google-cloud-sdk:/usr/lib/google-cloud-sdk command: –interval ..

Read more