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 ..
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 ..
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 ..
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 ..
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 ..
This one is a real head-scratcher, because everything had worked fine for years until yesterday. I have a google cloud account and the billing is set up correctly. I have private images in my GCR registry which I can ‘docker pull’ and ‘docker push’ from my laptop (MacBook Pro with Big Sur 11.4) with no ..
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 ..
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 ..
Container registry setup I use the following Dockerfile to create an image that I then push to google cloud container registry as a private image. I want to run my CD workflow in my workflow so that I can fetch deployment credentials that I store within my image. Side Note: Not sure if this is ..
I’ve setup a Google Cloud Build pipeline that’ll build a docker image from a Dockerfile, test the image and push the image into Google Container Registry. Upon running the pipeline I noticed that all defined steps passed with SUCCESS status but the build summary itself returned with FAILURE status even though I can see the ..