artifact registry docker image for cml runner
See original GitHub issueI’m trying out a cml runner
on GCP
using Gitlab
. I have a working file that starts up an instance with dvcorg/cml:latest
docker image.
Now I want to change the docker image for my own that adds in some helper utilities specific to my team. I’m hosting the image on artifact registry in Google cloud and I have granted the cloud-permission-set
access to the container registry.
However my job fails with the error:
ERROR: Job failed: failed to pull image "us-west3-docker.pkg.dev/<myproject>/containers/cml:latest" with specified policies [always]: Error response from daemon: Head "https://us-west3-docker.pkg.dev/v2/<myproject>/containers/cml/manifests/latest": denied: Permission "artifactregistry.repositories.downloadArtifacts" denied on resource "projects/<myproject>/locations/us-west3/repositories/containers" (or it may not exist) (manager.go:235:0s)
@dacbd confirmed he was able to reproduce and has a workaround for github
.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:14 (8 by maintainers)
Top Results From Across the Web
runner | CML
One or more (comma-delimited) labels for this runner [default: cml ]. ... Registry & GCP's Artifact Registry (to push and pull custom docker...
Read more >Quickstart: Store Docker container images in Artifact Registry
Artifact Registry provides a single location for managing private packages and Docker container images. This quickstart shows you how to:.
Read more >Build the New Docker Image - Cloudera Documentation
This topic shows you how to use Docker to build a custom image. A new custom Docker image can be built on any...
Read more >Container Registry · iterative.ai / cml-runner-example - GitLab
There are no container images stored for this project. With the Container Registry, every project can have its own space to store its...
Read more >Docker | MLEM
Building a docker image from the model or preparing a folder ready for running docker build in it. Requirements. pip install mlem[docker] #...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
cml runner / gitlab-ci access to private GCP registries much like AWS/ECR’s docker-credentials-login-ecr
Found my problem, I was missing the scopes on this line:
The working version is:
I thought my service account permissions would be sufficient.
Thanks for your help!